Skip to content

Commit

Permalink
Reproduction
Browse files Browse the repository at this point in the history
  • Loading branch information
petehamilton committed Jun 2, 2017
1 parent 0bb3d3e commit a9ec2ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/rubocop/cop/style/ternary_parentheses_spec.rb
Expand Up @@ -144,6 +144,12 @@
'foo = (yield) ? a : b',
'foo = yield ? a : b'

it_behaves_like 'code with offense',
'foo = (yield true) ? a : b'

it_behaves_like 'code with offense',
'foo = (foo true) ? a : b'

it_behaves_like 'code with offense',
'foo = (bar[:baz]) ? a : b',
'foo = bar[:baz] ? a : b'
Expand Down

0 comments on commit a9ec2ee

Please sign in to comment.