Skip to content

Instantly share code, notes, and snippets.

@szymon-przybyl
Created July 18, 2011 16:07
Show Gist options
  • Save szymon-przybyl/1089961 to your computer and use it in GitHub Desktop.
Save szymon-przybyl/1089961 to your computer and use it in GitHub Desktop.
order spec
specify 'with product_quantity greater than associated product quantity' do
Factory(:order,
:product => Factory(:product, :quantity => 10),
:product_quantity => 11
).should have(1).error_on(:product_quantity)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment