Skip to content

Commit

Permalink
Fix spec to be meaningful again
Browse files Browse the repository at this point in the history
In @e900036, I changed a spec to make it pass without thinking about it.
This was pointed out in the
[code review](#4615 (review))
by @mikegee and I fixed it, but then somehow that thing got lost again, possibly
during rebasing. Sorry about that.
  • Loading branch information
iGEL authored and bbatsov committed Oct 22, 2017
1 parent 6800106 commit 261aa3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/rubocop/ast/send_node_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,9 @@

describe '#comparison_method?' do
context 'with a comparison method' do
let(:source) { 'foo.bar <=> :baz' }
let(:source) { 'foo.bar >= :baz' }

it { expect(send_node.comparison_method?).to be_falsey }
it { expect(send_node.comparison_method?).to be_truthy }
end

context 'with a regular method' do
Expand Down

0 comments on commit 261aa3b

Please sign in to comment.