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