Merge branch 'fix-spinach-unsubscribe-mr-test' into 'master'

Remove timing dependency on unsubscribe merge request test

This test failed for me once. I am now on a mission to remove `sleep` from the spinach tests.

See: http://www.elabs.se/blog/53-why-wait_until-was-removed-from-capybara

See merge request !523
This commit is contained in:
Robert Schilling
2015-04-15 06:08:28 +00:00
+1 -2
View File
@@ -61,8 +61,7 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
end
step 'I should see that I am unsubscribed' do
sleep 0.2
find(".subscribe-button span").text.should == "Subscribe"
find(".subscribe-button span").should have_content("Subscribe")
end
step 'I click button "Unsubscribe"' do