Skip to content

Instantly share code, notes, and snippets.

@garybernhardt
Created June 24, 2014 19:19
Show Gist options
  • Save garybernhardt/53ee3fda8ee7ada79b26 to your computer and use it in GitHub Desktop.
Save garybernhardt/53ee3fda8ee7ada79b26 to your computer and use it in GitHub Desktop.
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