Skip to content

Commit 5ac67ea

Browse files
authored
Merge pull request #993 from biinari/fix/expect_offense_kwargs
Support expect_offense template arguments
2 parents a2ef166 + 49e729d commit 5ac67ea

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.rubocop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,7 @@ RSpec/ExampleLength:
5454
RSpec/DescribeClass:
5555
Exclude:
5656
- spec/project/**/*.rb
57+
58+
Style/FormatStringToken:
59+
Exclude:
60+
- spec/rubocop/**/*.rb

spec/support/expect_offense.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module ExpectOffense
99

1010
DEFAULT_FILENAME = 'example_spec.rb'
1111

12-
def expect_offense(source, filename = DEFAULT_FILENAME)
12+
def expect_offense(source, filename = DEFAULT_FILENAME, *args, **kwargs)
1313
super
1414
end
1515

0 commit comments

Comments
 (0)