diff options
Diffstat (limited to 'spec/finders/projects_finder_spec.rb')
-rw-r--r-- | spec/finders/projects_finder_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/finders/projects_finder_spec.rb b/spec/finders/projects_finder_spec.rb index 3bef4d85b33..1fa2a975ec3 100644 --- a/spec/finders/projects_finder_spec.rb +++ b/spec/finders/projects_finder_spec.rb @@ -62,7 +62,7 @@ RSpec.describe ProjectsFinder do describe 'with id_after' do context 'only returns projects with a project id greater than given' do - let(:params) { { id_after: internal_project.id }} + let(:params) { { id_after: internal_project.id } } it { is_expected.to eq([public_project]) } end @@ -70,7 +70,7 @@ RSpec.describe ProjectsFinder do describe 'with id_before' do context 'only returns projects with a project id less than given' do - let(:params) { { id_before: public_project.id }} + let(:params) { { id_before: public_project.id } } it { is_expected.to eq([internal_project]) } end @@ -79,7 +79,7 @@ RSpec.describe ProjectsFinder do describe 'with both id_before and id_after' do context 'only returns projects with a project id less than given' do let!(:projects) { create_list(:project, 5, :public) } - let(:params) { { id_after: projects.first.id, id_before: projects.last.id }} + let(:params) { { id_after: projects.first.id, id_before: projects.last.id } } it { is_expected.to contain_exactly(*projects[1..-2]) } end @@ -89,7 +89,7 @@ RSpec.describe ProjectsFinder do context 'only returns projects with a project id less than given and matching search' do subject { finder.execute.joins(:route) } - let(:params) { { id_before: public_project.id }} + let(:params) { { id_before: public_project.id } } it { is_expected.to eq([internal_project]) } end @@ -97,7 +97,7 @@ RSpec.describe ProjectsFinder do context 'only returns projects with a project id greater than given and matching search' do subject { finder.execute.joins(:route) } - let(:params) { { id_after: internal_project.id }} + let(:params) { { id_after: internal_project.id } } it { is_expected.to eq([public_project]) } end |