Sha256: de216e1138426a262e95eae380bae0a82ebf82fbdad298e6c8cb78a7d71adec4
Contents?: true
Size: 434 Bytes
Versions: 4
Compression:
Stored size: 434 Bytes
Contents
require File.expand_path('../abstract_unit', __FILE__) class TestEnum < ActiveSupport::TestCase fixtures :comments def test_enum_was comment = Comment.first assert_nil comment.shown comment.shown = :true assert_equal 'true', comment.shown assert_nil comment.shown_was comment.save comment.shown = :false assert_equal 'false', comment.shown assert_equal 'true', comment.shown_was end end
Version data entries
4 entries across 4 versions & 1 rubygems