You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well... anyway... I think in order to test that option, I'll have to reimplement how define_enum_for works. ActiveRecord keeps track of which columns are enum columns by storing them in a class-level defined_enums hash. Each key is the column and each value is an array of possible values that the column takes. In this case, _prefix and _suffix change which methods get created, and that information is not stored in defined_enums. So what I may have to do here is change the matcher so that it checks which methods get created as well.
define_enum_for
matcher should also have an option to check for_prefix
and_suffix
. Something like this:conversation.rb
conversation_spec.rb
The text was updated successfully, but these errors were encountered: