Skip to content

Instantly share code, notes, and snippets.

@volodymyr-mykhailyk
Last active December 26, 2015 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save volodymyr-mykhailyk/7123393 to your computer and use it in GitHub Desktop.
Save volodymyr-mykhailyk/7123393 to your computer and use it in GitHub Desktop.
MCM Gists
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