Fixed test_updated_on_eager_load.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8048 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
23fd43374d
commit
e2e3af4f0d
|
@ -123,7 +123,7 @@ class WikiPageTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_updated_on_eager_load
|
def test_updated_on_eager_load
|
||||||
page = WikiPage.with_updated_on.first
|
page = WikiPage.with_updated_on.first(:order => 'id')
|
||||||
assert page.is_a?(WikiPage)
|
assert page.is_a?(WikiPage)
|
||||||
assert_not_nil page.read_attribute(:updated_on)
|
assert_not_nil page.read_attribute(:updated_on)
|
||||||
assert_equal Time.gm(2007, 3, 6, 23, 10, 51), page.content.updated_on
|
assert_equal Time.gm(2007, 3, 6, 23, 10, 51), page.content.updated_on
|
||||||
|
|
Loading…
Reference in New Issue