Sha256: 80a74aecbc75948e3f13705a0ef5a5bd1315b2fb40a13c8216992440b63b9f0d
Contents?: true
Size: 632 Bytes
Versions: 7
Compression:
Stored size: 632 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../test_helper') Expectations do expect true do validation = Validatable::ValidatesExclusionOf.new stub_everything, :name, :within => ["test"] validation.valid?(stub(:name => "testing")) end expect true do validation = Validatable::ValidatesExclusionOf.new stub_everything, :name, :allow_nil => true, :within => ["test"] validation.valid?(stub(:name => nil)) end expect true do validation = Validatable::ValidatesExclusionOf.new stub_everything, :name, :allow_blank => true, :within => ["test"] validation.valid?(stub(:name => '')) end end
Version data entries
7 entries across 7 versions & 1 rubygems