shkm/enummer

Not saving

Closed this issue · 0 comments

1v commented

Good gem, but unfortunately not saving attribute value:

  test "setting a setter to true adds the value" do
    @user3.read = true

    assert_equal %i[execute read], @user3.permissions

    @user3.save

    assert_equal %i[execute read], @user3.permissions
  end
Failure:
EnummerTest#test_setting_a_setter_to_true_adds_the_value [test/enummer_test.rb:63]:
Expected: [:execute, :read]
  Actual: [:execute]