diff options
author | Matija Čupić <matteeyah@gmail.com> | 2017-12-05 17:11:22 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2017-12-05 17:11:22 +0100 |
commit | fc4f3164a6ba8e5ae1bb0792ea7f1ebb4753ccb4 (patch) | |
tree | c59562b2133bd4345643fdda42470737710a5399 /spec/features/projects/clusters_spec.rb | |
parent | 83648f243d6a1798b89eb7959c179d9fbd159c85 (diff) | |
download | gitlab-ce-fc4f3164a6ba8e5ae1bb0792ea7f1ebb4753ccb4.tar.gz |
Remove trailing whitespace from Clusters spec
Diffstat (limited to 'spec/features/projects/clusters_spec.rb')
-rw-r--r-- | spec/features/projects/clusters_spec.rb | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/spec/features/projects/clusters_spec.rb b/spec/features/projects/clusters_spec.rb index 2c71e9bd760..2fd12b7ff80 100644 --- a/spec/features/projects/clusters_spec.rb +++ b/spec/features/projects/clusters_spec.rb @@ -25,48 +25,48 @@ feature 'Clusters', :js do context 'when user has a cluster and visits cluster index page' do let!(:cluster) { create(:cluster, :project, :provided_by_gcp) } let(:project) { cluster.project } - + before do visit project_clusters_path(project) end - + it 'user sees a table with one cluster' do # One is the header row, the other the cluster row expect(page).to have_selector('.gl-responsive-table-row', count: 2) end - + it 'user sees a disabled add cluster button ' do expect(page).to have_selector('.js-add-cluster.disabled') end - + it 'user sees navigation tabs' do expect(page.find('.js-active-tab').text).to include('Active') expect(page.find('.js-active-tab .badge').text).to include('1') - + expect(page.find('.js-inactive-tab').text).to include('Inactive') expect(page.find('.js-inactive-tab .badge').text).to include('0') - + expect(page.find('.js-all-tab').text).to include('All') expect(page.find('.js-all-tab .badge').text).to include('1') end - + context 'inline update of cluster' do it 'user can update cluster' do expect(page).to have_selector('.js-toggle-cluster-list') end - + context 'with sucessfull request' do it 'user sees updated cluster' do expect do page.find('.js-toggle-cluster-list').click wait_for_requests end.to change { cluster.reload.enabled } - + expect(page).not_to have_selector('.is-checked') expect(cluster.reload).not_to be_enabled end end - + context 'with failed request' do it 'user sees not update cluster and error message' do expect_any_instance_of(Clusters::UpdateService).to receive(:execute).and_call_original @@ -80,16 +80,16 @@ feature 'Clusters', :js do end end end - + context 'when user clicks on a cluster' do before do click_link cluster.name end - + it 'user sees a cluster details page' do expect(page).to have_button('Save') expect(page.find(:css, '.cluster-name').value).to eq(cluster.name) end end - end + end end |