Sha256: eb1c2f336029ff37b93ec2f91bd90905624b326df5d7e7c06c70447781ecacb0
Contents?: true
Size: 342 Bytes
Versions: 3
Compression:
Stored size: 342 Bytes
Contents
require File.dirname(__FILE__) + "/../spec_helper" describe DataMapper::Validations::StringValidator do before(:each) do @v = DataMapper::Validations::StringValidator.new end it "should validate 'matches'" do @v.matches /aabb/ @v.errors_for("cde").should_not be_empty @v.errors_for("aabbb").should be_empty end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
datamapper-0.3.1 | spec/validations/string_validator.rb |
datamapper-0.3.0 | spec/validations/string_validator.rb |
datamapper-0.3.2 | spec/validations/string_validator.rb |