diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2019-02-22 10:19:25 +0100 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2019-02-22 14:55:07 +0100 |
commit | bf7846bec07157a8023770d03854834cceb69e3d (patch) | |
tree | 5d9c61964ee65add2e51a51dde61a9d09167f2e5 /spec/finders | |
parent | 56a54c62fba093ae53c8fef309454f38d3778b0f (diff) | |
download | gitlab-ce-bf7846bec07157a8023770d03854834cceb69e3d.tar.gz |
Only use boolean parameters internally
Use internally only boolean params.
Diffstat (limited to 'spec/finders')
-rw-r--r-- | spec/finders/issues_finder_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/finders/issues_finder_spec.rb b/spec/finders/issues_finder_spec.rb index 77b669cfa35..9cbb2403c0f 100644 --- a/spec/finders/issues_finder_spec.rb +++ b/spec/finders/issues_finder_spec.rb @@ -470,7 +470,7 @@ describe IssuesFinder do end context 'user filters confidential issues' do - let(:params) { { confidential: 'yes' } } + let(:params) { { confidential: true } } it 'returns only confdential issues' do expect(issues).to contain_exactly(confidential_issue) @@ -478,7 +478,7 @@ describe IssuesFinder do end context 'user filters only public issues' do - let(:params) { { confidential: 'no' } } + let(:params) { { confidential: false } } it 'returns only confdential issues' do expect(issues).to contain_exactly(issue1, issue2, issue3, issue4) |