Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updating to validatable 2.0.1

  • Loading branch information...
commit 71f08e9aba132f567bd01ac29cb6ab9a45a7643a 1 parent b208cf9
@durran durran authored
View
2  Rakefile
@@ -14,7 +14,7 @@ begin
gem.add_dependency("activesupport", ">= 2.2.2")
gem.add_dependency("mongo", ">= 0.18.2")
- gem.add_dependency("durran-validatable", ">= 2.0.0")
+ gem.add_dependency("durran-validatable", ">= 2.0.1")
gem.add_dependency("leshill-will_paginate", ">= 2.3.11")
gem.add_development_dependency("rspec", ">= 1.2.9")
View
2  lib/mongoid.rb
@@ -23,7 +23,7 @@
gem "activesupport", ">= 2.2.2"
gem "mongo", ">= 0.18.2"
-gem "durran-validatable", ">= 2.0.0"
+gem "durran-validatable", ">= 2.0.1"
gem "leshill-will_paginate", ">= 2.3.11"
require "delegate"
View
1  spec/unit/mongoid/commands_spec.rb
@@ -215,6 +215,7 @@
end
it "runs the validation callbacks" do
+ @comment.expects(:run_callbacks).with(:validate)
@comment.expects(:run_callbacks).with(:before_validation)
@comment.expects(:run_callbacks).with(:after_validation)
@comment.valid?
Please sign in to comment.
Something went wrong with that request. Please try again.