-
-
Save domcleal/e792c526eed7275f6b4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/spec/rubocop/cop/style/stabby_lambda_parentheses_spec.rb b/spec/rubocop/cop/style/stabby_lambda_parentheses_spec.rb | |
index 89657ed..afa928c 100644 | |
--- a/spec/rubocop/cop/style/stabby_lambda_parentheses_spec.rb | |
+++ b/spec/rubocop/cop/style/stabby_lambda_parentheses_spec.rb | |
@@ -28,6 +28,11 @@ describe RuboCop::Cop::Style::StabbyLambdaParentheses, :config do | |
inspect_source(cop, '-> { true }') | |
expect(cop.offenses).to be_empty | |
end | |
+ | |
+ it 'does not check a method call named lambda' do | |
+ inspect_source(cop, 'o.lambda') | |
+ expect(cop.offenses).to be_empty | |
+ end | |
end | |
context 'require_no_parentheses' do |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment