Permalink
Browse files

Move spec to functional

  • Loading branch information...
1 parent b303acb commit fc25a6db553a0901fd157263a42fba92834630e0 @durran durran committed Apr 24, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 spec/{ → functional}/mongoid/validations/numericality_spec.rb
@@ -7,8 +7,8 @@
before(:all) do
class TestModel
include Mongoid::Document
- field :amount, type: BigDecimal
- validates_numericality_of :amount, allow_blank: false
+ field :amount, :type => BigDecimal
+ validates_numericality_of :amount, :allow_blank => false
end
end
@@ -19,7 +19,7 @@ class TestModel
context "when the value is non numeric" do
let(:model) do
- TestModel.new(amount: "asdf")
+ TestModel.new(:amount => "asdf")
end
it "returns false" do

0 comments on commit fc25a6d

Please sign in to comment.