shkm/enummer

Bugged update with prefix

Closed this issue · 0 comments

1v commented
  test "update with prefix" do
    assert @user1.consumes_cigarettes?
    refute @user1.consumes_greens?
    @user1.update!(consumes_cigarettes: true)
    refute @user1.consumes_greens?
  end
Failure:
EnummerTest#test_update_with_prefix [test/enummer_test.rb:103]:
Expected true to not be truthy.