lib/matchers/validations/associated.rb in mongoid-rspec-1.8.2 vs lib/matchers/validations/associated.rb in mongoid-rspec-1.9.0
- old
+ new
@@ -1,19 +1,19 @@
module Mongoid
module Matchers
- module Validations
+ module Validations
class ValidateAssociatedMatcher < HaveValidationMatcher
def initialize(name)
super(name, :associated)
end
-
+
def description
"validate associated #{@field.inspect}"
end
end
-
+
def validate_associated(association_name)
ValidateAssociatedMatcher.new(association_name)
- end
+ end
end
end
-end
+end
\ No newline at end of file