Skip to content

Commit

Permalink
Add an extra example
Browse files Browse the repository at this point in the history
  • Loading branch information
Bozhidar Batsov committed Nov 12, 2013
1 parent 85f05df commit dc7544f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/rubocop/cop/style/dot_position_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
inspect_source(cop, ['l.', '(1)'])
expect(cop.offences.size).to eq(1)
end

it 'does not err on method call on same line' do
inspect_source(cop, ['something.method_name'])
expect(cop.offences).to be_empty
end
end

context 'Trailing dots style' do
Expand Down

0 comments on commit dc7544f

Please sign in to comment.