提交 42fd2a3b 编写于 作者: R Raimonds Simanovskis

added :order to find :all as otherwise Oracle tests were failing

上级 c3e1ef0b
...@@ -137,7 +137,8 @@ def test_alt_finding_incorrect_type_data ...@@ -137,7 +137,8 @@ def test_alt_finding_incorrect_type_data
def test_update_all_within_inheritance def test_update_all_within_inheritance
Client.update_all "name = 'I am a client'" Client.update_all "name = 'I am a client'"
assert_equal "I am a client", Client.find(:all).first.name assert_equal "I am a client", Client.find(:all).first.name
assert_equal "37signals", Firm.find(:all).first.name # Order by added as otherwise Oracle tests were failing because of different order of results
assert_equal "37signals", Firm.find(:all, :order => "id").first.name
end end
def test_alt_update_all_within_inheritance def test_alt_update_all_within_inheritance
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册