Skip to content

Instantly share code, notes, and snippets.

@shepmaster
Created August 23, 2012 13:24
Show Gist options
  • Select an option

  • Save shepmaster/3436566 to your computer and use it in GitHub Desktop.

Select an option

Save shepmaster/3436566 to your computer and use it in GitHub Desktop.
it 'creates a request' do
generator = double('typheous request generator')
generator.should_receive(:create).with("name", 42)
my_obj = MyObject.new(generator)
my_obj.some_method_that_means_something_to_my_domain
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment