Skip to content

Instantly share code, notes, and snippets.

@Dariusp
Created February 11, 2014 14:52
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 Dariusp/8936283 to your computer and use it in GitHub Desktop.
Save Dariusp/8936283 to your computer and use it in GitHub Desktop.
it "should create credit when order finalized" do
order = FactoryGirl.create(:order_with_line_items)
order.finalize!
Spree::Credit.find_by_order_id(order.id).should be
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment