Created
June 24, 2014 19:19
-
-
Save garybernhardt/53ee3fda8ee7ada79b26 to your computer and use it in GitHub Desktop.
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
it "requires an amount_charged greater than 0" do | |
order = FactoryGirl.build(:order, :amount_charged => 0) | |
order.valid?.should == false | |
order.errors[:amount_charged].should == ["must be greater than 0"] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment