Refactor clusters feature spec unused variable

This commit is contained in:
Matija Čupić 2017-12-03 16:12:24 +01:00
parent bc874a6fa1
commit 7691e015d7
No known key found for this signature in database
GPG key ID: 4BAF84FFACD2E5DE

View file

@ -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
expect do
page.find('.js-toggle-cluster-list').click
wait_for_requests
end.to change { cluster.enabled }
wait_for_requests
expect(cluster.enabled).to eq(!cluster.enabled)
expect(page).not_to have_selector('.is-checked')
end
end