diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 10:33:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-19 10:33:21 +0300 |
commit | 36a59d088eca61b834191dacea009677a96c052f (patch) | |
tree | e4f33972dab5d8ef79e3944a9f403035fceea43f /spec/tooling/danger/specs_spec.rb | |
parent | a1761f15ec2cae7c7f7bbda39a75494add0dfd6f (diff) |
Add latest changes from gitlab-org/gitlab@15-0-stable-eev15.0.0-rc42
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 |