Commit b81e1389 authored by Igor Drozdov's avatar Igor Drozdov

Merge branch '212525-failure-on-spec-finders-protected_branches_finder_spec-rb-32' into 'master'

Resolve "Failure on spec/finders/protected_branches_finder_spec.rb:32"

Closes #212525

See merge request gitlab-org/gitlab!28077
parents 3cc31da9 88541be0
...@@ -30,7 +30,7 @@ describe ProtectedBranchesFinder do ...@@ -30,7 +30,7 @@ describe ProtectedBranchesFinder do
end end
it 'returns limited protected branches of project' do it 'returns limited protected branches of project' do
expect(subject).to eq([another_protected_branch]) expect(subject.count).to eq(1)
end end
end end
end end
......
...@@ -5718,7 +5718,7 @@ describe Project do ...@@ -5718,7 +5718,7 @@ describe Project do
subject { project.limited_protected_branches(1) } subject { project.limited_protected_branches(1) }
it 'returns limited number of protected branches based on specified limit' do it 'returns limited number of protected branches based on specified limit' do
expect(subject).to eq([another_protected_branch]) expect(subject.count).to eq(1)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment