spec/rubocop/cop/rspec/described_class_spec.rb in rubocop-rspec-1.6.0 vs spec/rubocop/cop/rspec/described_class_spec.rb in rubocop-rspec-1.7.0
- old
+ new
@@ -90,11 +90,11 @@
subject { "MyClass" }
end
RUBY
end
- it 'ignores describe that do not referece to a class' do
+ it 'ignores describe that do not reference to a class' do
expect_no_violations(<<-RUBY)
describe "MyClass" do
subject { "MyClass" }
end
RUBY
@@ -202,10 +202,10 @@
'describe MyClass do',
' include MyClass',
' subject { MyClass.do_something }',
' before { MyClass.do_something }',
'end'
- ]
+ ], 'spec/foo_spec.rb'
)
expect(new_source).to eq(
[
'describe MyClass do',
' include described_class',