diff options
Diffstat (limited to 'spec/models/project_spec.rb')
-rw-r--r-- | spec/models/project_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 2586289a699..51fcee29485 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -5718,7 +5718,7 @@ describe Project do subject { project.limited_protected_branches(1) } 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 |