Sha256: fc8ff5aea28adf1b9228d97f147da4deb5bf18ffe3d9263479316f5134c16018

Contents?: true

Size: 328 Bytes

Versions: 15

Compression:

Stored size: 328 Bytes

Contents

# frozen_string_literal: true

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

15 entries across 15 versions & 1 rubygems

Version Path
second_level_cache-2.7.1 test/enum_attr_test.rb
second_level_cache-2.7.0 test/enum_attr_test.rb
second_level_cache-2.6.4 test/enum_attr_test.rb
second_level_cache-2.6.3 test/enum_attr_test.rb
second_level_cache-2.6.2 test/enum_attr_test.rb
second_level_cache-2.6.1 test/enum_attr_test.rb
second_level_cache-2.6.0 test/enum_attr_test.rb
second_level_cache-2.5.3 test/enum_attr_test.rb
second_level_cache-2.5.2 test/enum_attr_test.rb
second_level_cache-2.5.0 test/enum_attr_test.rb
second_level_cache-2.4.4 test/enum_attr_test.rb
second_level_cache-2.4.3 test/enum_attr_test.rb
second_level_cache-2.4.2 test/enum_attr_test.rb
second_level_cache-2.4.1 test/enum_attr_test.rb
second_level_cache-2.4.0 test/enum_attr_test.rb