diff options
Diffstat (limited to 'test/models/page_test.rb')
| -rw-r--r-- | test/models/page_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/models/page_test.rb b/test/models/page_test.rb index 8b34399..afba8b5 100644 --- a/test/models/page_test.rb +++ b/test/models/page_test.rb | |||
| @@ -120,7 +120,7 @@ class PageTest < ActiveSupport::TestCase | |||
| 120 | 120 | ||
| 121 | english = page.translations.select {|x| x.locale == :en}.first | 121 | english = page.translations.select {|x| x.locale == :en}.first |
| 122 | Page::Translation.record_timestamps = false | 122 | Page::Translation.record_timestamps = false |
| 123 | english.update_attributes(:updated_at => (Time.now+25.hours)) | 123 | english.update(:updated_at => (Time.now+25.hours)) |
| 124 | Page::Translation.record_timestamps = true | 124 | Page::Translation.record_timestamps = true |
| 125 | assert_equal 1, Page.find_with_outdated_translations.count | 125 | assert_equal 1, Page.find_with_outdated_translations.count |
| 126 | 126 | ||
