Displaying 1 result from an estimated 1 matches for "finder_with_bang".
2006 Oct 05
0
Where to add ActiveRecord::Base#find! tests
...ng
assert_equal(topics(:first).title, Topic.find!(1).title)
end
or I can just add the test in below the other one:
def test_find
assert_equal(topics(:first).title, Topic.find(1).title)
assert_equal(topics(:first).title, Topic.find!(1).title)
end
or should it be in a new finder_with_bang.rb ?
Thoughts?
I don''t want to bother making up a big patch if it has no chance of
being applied.
-- tim
[1] http://dev.rubyonrails.org/svn/rails/trunk/activerecord/test/
finder_test.rb
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are...