diff options
Diffstat (limited to 'activerecord/test/cases/enum_test.rb')
-rw-r--r-- | activerecord/test/cases/enum_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/enum_test.rb b/activerecord/test/cases/enum_test.rb index 8eb82ead3c..bb9faccf1b 100644 --- a/activerecord/test/cases/enum_test.rb +++ b/activerecord/test/cases/enum_test.rb @@ -35,4 +35,9 @@ class EnumTest < ActiveRecord::TestCase @book.update! status: :written assert @book.written? end + + test "enum methods are overwritable" do + assert_equal "do publish work...", @book.published! + assert @book.published? + end end |