diff options
Diffstat (limited to 'spec/tooling/danger/specs_spec.rb')
-rw-r--r-- | spec/tooling/danger/specs_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/tooling/danger/specs_spec.rb b/spec/tooling/danger/specs_spec.rb index b2454960a7b..6c1fbbb903d 100644 --- a/spec/tooling/danger/specs_spec.rb +++ b/spec/tooling/danger/specs_spec.rb @@ -118,7 +118,8 @@ RSpec.describe Tooling::Danger::Specs do "- expect(foo).to match(['bar'])", "- expect(foo).to match ['bar']", "- expect(foo).to eq(['bar'])", - "- expect(foo).to eq ['bar']" + "- expect(foo).to eq ['bar']", + "+ expect(foo).to eq([])" ] + matching_lines end @@ -126,7 +127,7 @@ RSpec.describe Tooling::Danger::Specs do allow(specs.helper).to receive(:changed_lines).with(filename).and_return(changed_lines) end - it 'returns added, modified, and renamed_after files by default' do + it 'returns all lines using an array equality matcher' do expect(specs.added_line_matching_match_with_array(filename)).to match_array(matching_lines) end end |