spec/rubocop/cop/rspec/describe_class_spec.rb in rubocop-rspec-1.2.1 vs spec/rubocop/cop/rspec/describe_class_spec.rb in rubocop-rspec-1.2.2
- old
+ new
@@ -2,11 +2,11 @@
describe RuboCop::Cop::RSpec::DescribeClass do
subject(:cop) { described_class.new }
it 'checks first-line describe statements' do
- inspect_source(cop, ['describe "bad describe" do; end'])
+ inspect_source(cop, 'describe "bad describe" do; end')
expect(cop.offenses.size).to eq(1)
expect(cop.offenses.map(&:line).sort).to eq([1])
expect(cop.messages).to eq(['The first argument to describe should be ' \
'the class or module being tested.'])
end
@@ -26,9 +26,9 @@
'end'])
expect(cop.offenses).to be_empty
end
it "doesn't blow up on single-line describes" do
- inspect_source(cop, ['describe Some::Class'])
+ inspect_source(cop, 'describe Some::Class')
expect(cop.offenses).to be_empty
end
end