diff --git a/lib/shoulda/matchers/active_record/define_enum_for_matcher.rb b/lib/shoulda/matchers/active_record/define_enum_for_matcher.rb index a621c7284..f30895c2f 100644 --- a/lib/shoulda/matchers/active_record/define_enum_for_matcher.rb +++ b/lib/shoulda/matchers/active_record/define_enum_for_matcher.rb @@ -623,7 +623,7 @@ def missing_methods_message elsif expected_suffix message << 'configured with either a different suffix or no ' message << 'suffix at all' - elsif expected_intance_methods + elsif expected_instance_methods? message << 'configured with no instance methods' else '' @@ -700,7 +700,7 @@ def expected_instance_methods end end - def expected_intance_methods + def expected_instance_methods? options[:instance_methods] end