diff options
Diffstat (limited to 'activerecord/test/base_test.rb')
-rwxr-xr-x | activerecord/test/base_test.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/activerecord/test/base_test.rb b/activerecord/test/base_test.rb index ccd9152e60..119be8d868 100755 --- a/activerecord/test/base_test.rb +++ b/activerecord/test/base_test.rb @@ -620,4 +620,13 @@ class BasicsTest < Test::Unit::TestCase @topics["first"].find.toggle!(:approved) assert @topics["first"].find.approved? end -end
\ No newline at end of file + + def test_reload + t1 = Topic.find(1) + t2 = Topic.find(1) + t1.title = "something else" + t1.save + t2.reload + assert_equal t1.title, t2.title + end +end |