diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-01 15:07:45 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-01 15:07:45 +0000 |
commit | 1219a9dce91f4edbc135dfc08299b4122b4825a8 (patch) | |
tree | e7d12a55d75a2d56e60d9527bef3724e3578866d /spec/finders/issues_finder_spec.rb | |
parent | 1a0d6dbdc2ac3047f4953a359ef27ba6e26074ae (diff) | |
download | gitlab-ce-1219a9dce91f4edbc135dfc08299b4122b4825a8.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/finders/issues_finder_spec.rb')
-rw-r--r-- | spec/finders/issues_finder_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/finders/issues_finder_spec.rb b/spec/finders/issues_finder_spec.rb index b6bedab724a..baf40861a6e 100644 --- a/spec/finders/issues_finder_spec.rb +++ b/spec/finders/issues_finder_spec.rb @@ -774,14 +774,16 @@ describe IssuesFinder do end describe '#row_count', :request_store do + let_it_be(:admin) { create(:admin) } + it 'returns the number of rows for the default state' do - finder = described_class.new(user) + finder = described_class.new(admin) expect(finder.row_count).to eq(4) end it 'returns the number of rows for a given state' do - finder = described_class.new(user, state: 'closed') + finder = described_class.new(admin, state: 'closed') expect(finder.row_count).to be_zero end |