Skip to content

Commit

Permalink
Change MultipleExpectations to use 'Max' literal (rubocop#269)
Browse files Browse the repository at this point in the history
Previously, MultipleExpectations depended on ConfigurableMax defining
the method `parameter_name`. This method name changed on the most recent
(unreleased) version of rubocop and this broke the cop. Probably safer
for us to rely on the literal until the public API for rubocop is clear
  • Loading branch information
backus authored and bquorning committed Dec 30, 2016
1 parent f860755 commit cdb7394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rspec/multiple_expectations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def flag_example(node, expectation_count:)
end

def max_expectations
Integer(cop_config.fetch(parameter_name, 1))
Integer(cop_config.fetch('Max', 1))
end
end
end
Expand Down

0 comments on commit cdb7394

Please sign in to comment.