diff options
author | Robert Speicher <robert@gitlab.com> | 2018-02-23 17:01:12 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2018-02-23 17:01:12 +0000 |
commit | 3540841b214846deff7cd79baf6cc86aa8653b81 (patch) | |
tree | fcba4123e25bd6ab714cc496f4fd6b93064e993f /spec/controllers | |
parent | d600a6ef7117a7c113cbdf5394e04d8938810b9b (diff) | |
parent | 52c56400f11cbf7864bdadb917fa27a4a5deaca5 (diff) | |
download | gitlab-ce-3540841b214846deff7cd79baf6cc86aa8653b81.tar.gz |
Merge branch 'master' into '29497-pages-custom-domain-dns-verification'
# Conflicts:
# db/schema.rb
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/autocomplete_controller_spec.rb | 10 | ||||
-rw-r--r-- | spec/controllers/projects/clusters/gcp_controller_spec.rb | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/spec/controllers/autocomplete_controller_spec.rb b/spec/controllers/autocomplete_controller_spec.rb index 73fff6eb5ca..b7257fac608 100644 --- a/spec/controllers/autocomplete_controller_spec.rb +++ b/spec/controllers/autocomplete_controller_spec.rb @@ -109,15 +109,17 @@ describe AutocompleteController do end context 'limited users per page' do - let(:per_page) { 2 } - before do + 25.times do + create(:user) + end + sign_in(user) - get(:users, per_page: per_page) + get(:users) end it { expect(json_response).to be_kind_of(Array) } - it { expect(json_response.size).to eq(per_page) } + it { expect(json_response.size).to eq(20) } end context 'unauthenticated user' do diff --git a/spec/controllers/projects/clusters/gcp_controller_spec.rb b/spec/controllers/projects/clusters/gcp_controller_spec.rb index 775f9db1c6e..e14ba29fa70 100644 --- a/spec/controllers/projects/clusters/gcp_controller_spec.rb +++ b/spec/controllers/projects/clusters/gcp_controller_spec.rb @@ -161,7 +161,7 @@ describe Projects::Clusters::GcpController do it 'renders the cluster form with an error' do go - expect(response).to set_flash[:alert] + expect(response).to set_flash.now[:alert] expect(response).to render_template('new') end end |