Commit 7691e015 authored by Matija Čupić's avatar Matija Čupić

Refactor clusters feature spec unused variable

parent bc874a6f
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment