Skip to content

Instantly share code, notes, and snippets.

@ianks
Last active June 16, 2017 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianks/150da4e4ebca852f42f811e60b3021e3 to your computer and use it in GitHub Desktop.
Save ianks/150da4e4ebca852f42f811e60b3021e3 to your computer and use it in GitHub Desktop.
# ...
expectation_mutex = Mutex.new
expect(client).to receive(:fetch_users) do |args|
expectation_mutex.synchronize do
expect(args).to eql(current_page)
end
# ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment