test/validation_support_test.rb in whyvalidationssuckin96-1.2.3 vs test/validation_support_test.rb in whyvalidationssuckin96-1.3.0
- old
+ new
@@ -32,9 +32,13 @@
should "add a 'all_validations' instance method" do
topic.new
end.respond_to(:all_validations)
+ should "have a ValidationCollection for all_validations" do
+ topic.new.all_validations.instance_of?(WhyValidationsSuckIn96::ValidationCollection)
+ end
+
should "have an empty validation collection" do
topic.validation_collection.size
end.equals(0)
should "be valid when no validations have been defined" do