diff options
author | Matija Čupić <matteeyah@gmail.com> | 2017-12-03 18:12:24 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2017-12-03 18:12:24 +0300 |
commit | 7691e015d7c103b39a92e3a18f6dff5ff9602394 (patch) | |
tree | d5ff516efb3aecc0819ceb6aec4b98f05ee51a0e /spec/features/projects/clusters_spec.rb | |
parent | bc874a6fa1290ab655c9532a17c249b6a1842c5c (diff) |
Refactor clusters feature spec unused variable
Diffstat (limited to 'spec/features/projects/clusters_spec.rb')
-rw-r--r-- | spec/features/projects/clusters_spec.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/features/projects/clusters_spec.rb b/spec/features/projects/clusters_spec.rb index 6acfca3deaf..b85bd0f7123 100644 --- a/spec/features/projects/clusters_spec.rb +++ b/spec/features/projects/clusters_spec.rb @@ -122,12 +122,11 @@ feature 'Clusters', :js do context 'with sucessfull request' do it 'user sees updated cluster' do - cluster_enabled = cluster.enabled - page.find('.js-toggle-cluster-list').click - - wait_for_requests + expect do + page.find('.js-toggle-cluster-list').click + wait_for_requests + end.to change { cluster.enabled } - expect(cluster.enabled).to eq(!cluster.enabled) expect(page).not_to have_selector('.is-checked') end end |