spec/rubocop/cop/rspec/describe_method_spec.rb in rubocop-rspec-1.2.1 vs spec/rubocop/cop/rspec/describe_method_spec.rb in rubocop-rspec-1.2.2
- old
+ new
@@ -2,10 +2,10 @@
describe RuboCop::Cop::RSpec::DescribeMethod do
subject(:cop) { described_class.new }
it 'enforces non-method names' do
- inspect_source(cop, ["describe Some::Class, 'nope' do; end"])
+ inspect_source(cop, "describe Some::Class, 'nope' do; end")
expect(cop.offenses.size).to eq(1)
expect(cop.offenses.map(&:line).sort).to eq([1])
expect(cop.messages)
.to eq(['The second argument to describe should be the method being ' \
"tested. '#instance' or '.class'"])