Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ywen
Created June 25, 2012 15:42
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 ywen/2989336 to your computer and use it in GitHub Desktop.
Save ywen/2989336 to your computer and use it in GitHub Desktop.
subject { Factory.build : merchant_location, pk => 12, : physical_location_se_number => "92929"}
describe "#create" do
it "sends out email" do # or whatever desc makes sense
Merchant::Location.should_receive(:enqueue).at_least(1).times.with(:validate_external_location, 12)
subject.after_create
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment