[Git][noosfero/noosfero][master] 2 commits: community_track: use assert_in_delta with DateTime
Antonio Terceiro
gitlab at mg.gitlab.com
Thu Jan 21 10:12:00 BRST 2016
Antonio Terceiro pushed to branch master at Noosfero / noosfero
Commits:
8b709bd0 by Lucas Kanashiro at 2016-01-20T15:48:42-02:00
community_track: use assert_in_delta with DateTime
Signed-off-by: Gustavo Jaruga <darksshades at gmail.com>
- - - - -
85f53985 by Antonio Terceiro at 2016-01-21T12:11:26+00:00
Merge branch 'fix_community_track' into 'master'
Fix tests of community_track plugin
We still have one failing test, to fix it we need to bump will_paginate version to 3.0.7. We did not do it because this version is not available on Debian stable, only on testing. When ruby-will-paginate will be available in Debian stable we just need to bump version in Gemfile and debian/control.
See merge request !769
- - - - -
1 changed file:
- plugins/community_track/test/unit/community_track_plugin/step_test.rb
Changes:
=====================================
plugins/community_track/test/unit/community_track_plugin/step_test.rb
=====================================
--- a/plugins/community_track/test/unit/community_track_plugin/step_test.rb
+++ b/plugins/community_track/test/unit/community_track_plugin/step_test.rb
@@ -124,14 +124,14 @@ class StepTest < ActiveSupport::TestCase
@step.end_date = DateTime.now.end_of_day
@step.accept_comments = false
@step.schedule_activation
- assert_equal @step.start_date, Delayed::Job.first.run_at
+ assert_in_delta @step.start_date, Delayed::Job.first.run_at
end
should 'create delayed job if end date has passed' do
@step.start_date = DateTime.now - 5.days
@step.end_date = DateTime.now - 2.days
@step.schedule_activation
- assert_equal @step.end_date + 1.day, Delayed::Job.first.run_at
+ assert_in_delta @step.end_date + 1.day, Delayed::Job.first.run_at
end
should 'do not schedule delayed job if save but do not modify date fields' do
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/9907de143d684dfddbae1ee3377dd034b8b0c692...85f53985dbe71bd6a6bcea7a0127747c97293474
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160121/1b2c058e/attachment.html>
More information about the Noosfero-dev
mailing list