Skip to content

Instantly share code, notes, and snippets.

@gmanley
Created August 12, 2013 17:02
Show Gist options
  • Save gmanley/6212857 to your computer and use it in GitHub Desktop.
Save gmanley/6212857 to your computer and use it in GitHub Desktop.
deals = ['uuid1', 'uuid2', 'uuid3'].map do |uuid|
deal_info = double()
deal_info.stub_chain(:[], :uuid) { uuid }
deal_info
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment