Skip to content

Instantly share code, notes, and snippets.

@domcleal
Created November 24, 2015 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domcleal/e792c526eed7275f6b4b to your computer and use it in GitHub Desktop.
Save domcleal/e792c526eed7275f6b4b to your computer and use it in GitHub Desktop.
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