Sha256: fbdff1ad1ddc3c0613ddbb0d650054654a579db491ef8318316c15f6797db3ec

Contents?: true

Size: 297 Bytes

Versions: 9

Compression:

Stored size: 297 Bytes

Contents

require 'test_helper'

class EnumAttrTest < ActiveSupport::TestCase
  def setup
    @user = User.create name: 'csdn', email: 'test@csdn.com'
  end

  def test_enum_attr
    @user.archived!
    assert_equal 'archived', @user.status
    assert_equal 'archived', User.find(@user.id).status
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
second_level_cache-2.3.3 test/enum_attr_test.rb
second_level_cache-2.3.2 test/enum_attr_test.rb
second_level_cache-2.3.1 test/enum_attr_test.rb
second_level_cache-2.3.0 test/enum_attr_test.rb
second_level_cache-2.3.0.beta test/enum_attr_test.rb
second_level_cache-2.2.6 test/enum_attr_test.rb
second_level_cache-2.2.5 test/enum_attr_test.rb
second_level_cache-2.2.4 test/enum_attr_test.rb
second_level_cache-2.2.3 test/enum_attr_test.rb