Last active
December 26, 2015 08:38
-
-
Save volodymyr-mykhailyk/7123393 to your computer and use it in GitHub Desktop.
MCM Gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
feature 'Concurrent getting from bucket' do | |
before do | |
@hunters = 3.times.map { create(:hunter) } | |
steal_bucket.update_attribute(:cookies, 10) | |
end | |
it 'should maintain total cookies amount' do | |
several_processes(10.times.map) do | |
login_hunter(@hunters.sample) | |
visit hunting_path | |
click_on 'get_steal_bucket_link' | |
end | |
total_cookies.should == 10 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment