diff options
Diffstat (limited to 'activerecord/test')
-rwxr-xr-x | activerecord/test/base_test.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/activerecord/test/base_test.rb b/activerecord/test/base_test.rb index 3c1cac0d49..e8954b69d0 100755 --- a/activerecord/test/base_test.rb +++ b/activerecord/test/base_test.rb @@ -1737,4 +1737,9 @@ class BasicsTest < Test::Unit::TestCase assert_equal %("#{t.written_on.to_s(:db)}"), t.attribute_for_inspect(:written_on) assert_equal '"This is some really long content, longer than 50 ch..."', t.attribute_for_inspect(:content) end -end + + def test_becomes + assert_kind_of Reply, topics(:first).becomes(Reply) + assert_equal "The First Topic", topics(:first).becomes(Reply).title + end +end
\ No newline at end of file |