Created
July 18, 2011 16:07
-
-
Save LegendSzymonP/1089961 to your computer and use it in GitHub Desktop.
order spec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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