Skip to content

Commit

Permalink
Merge pull request #993 from biinari/fix/expect_offense_kwargs
Browse files Browse the repository at this point in the history
Support expect_offense template arguments
  • Loading branch information
pirj authored Aug 9, 2020
2 parents a2ef166 + 49e729d commit 5ac67ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,7 @@ RSpec/ExampleLength:
RSpec/DescribeClass:
Exclude:
- spec/project/**/*.rb

Style/FormatStringToken:
Exclude:
- spec/rubocop/**/*.rb
2 changes: 1 addition & 1 deletion spec/support/expect_offense.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module ExpectOffense

DEFAULT_FILENAME = 'example_spec.rb'

def expect_offense(source, filename = DEFAULT_FILENAME)
def expect_offense(source, filename = DEFAULT_FILENAME, *args, **kwargs)
super
end

Expand Down

0 comments on commit 5ac67ea

Please sign in to comment.