Skip to content

Commit

Permalink
Fix type and name collision
Browse files Browse the repository at this point in the history
  • Loading branch information
vaot committed Jul 8, 2024
1 parent 38f79d5 commit c409294
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/shoulda/matchers/active_record/define_enum_for_matcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
''
Expand Down Expand Up @@ -700,7 +700,7 @@ def expected_instance_methods
end
end

def expected_intance_methods
def expected_instance_methods?
options[:instance_methods]
end

Expand Down

0 comments on commit c409294

Please sign in to comment.