spec/rubocop/cop/rspec/example_wording_spec.rb in rubocop-rspec-1.4.1 vs spec/rubocop/cop/rspec/example_wording_spec.rb in rubocop-rspec-1.5.0

- old
+ new

@@ -35,13 +35,18 @@ .to eq(['Do not use should when describing your tests.']) expect(cop.highlights).to eq(['shouldn\'t do something']) end it 'skips descriptions without `should` at the beginning' do - inspect_source(cop, ["it 'finds no should ' \\", - " 'here' do", - 'end']) + inspect_source( + cop, + [ + "it 'finds no should ' \\", + " 'here' do", + 'end' + ] + ) expect(cop.offenses).to be_empty end { 'should return something' => 'returns something', @@ -58,10 +63,12 @@ expect(new_source).to eq("it '#{new}' do\nend") end end it "autocorrects shouldn't" do - new_source = - autocorrect_source(cop, 'it "shouldn\'t return something" do; end') + new_source = autocorrect_source( + cop, + 'it "shouldn\'t return something" do; end' + ) expect(new_source).to eq('it "does not return something" do; end') end end