summaryrefslogtreecommitdiff
path: root/test/unit/page_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/page_test.rb')
-rw-r--r--test/unit/page_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/page_test.rb b/test/unit/page_test.rb
index 099b79df..401d7778 100644
--- a/test/unit/page_test.rb
+++ b/test/unit/page_test.rb
@@ -118,7 +118,7 @@ class PageTest < ActiveSupport::TestCase
118 assert_equal 2, page.translations.size 118 assert_equal 2, page.translations.size
119 assert_equal 0, Page.find_with_outdated_translations.size 119 assert_equal 0, Page.find_with_outdated_translations.size
120 120
121 english = *page.translations.select {|x| x.locale == :en} 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_attributes(:updated_at => (Time.now+25.hours))
124 Page::Translation.record_timestamps = true 124 Page::Translation.record_timestamps = true