spec/rubocop/cop/rspec/multiple_expectations_spec.rb in rubocop-rspec-1.16.0 vs spec/rubocop/cop/rspec/multiple_expectations_spec.rb in rubocop-rspec-1.17.0
- old
+ new
@@ -161,10 +161,10 @@
RUBY
end
end
it 'generates a todo based on the worst violation' do
- inspect_source(cop, <<-RUBY, 'spec/foo_spec.rb')
+ inspect_source(<<-RUBY, 'spec/foo_spec.rb')
describe Foo do
it 'uses expect twice' do
expect(foo).to eq(bar)
expect(baz).to eq(bar)
end