This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') | |
describe Person do | |
it "should not be valid without last name" do | |
p = Person.new :first_name => "blah" | |
p.should have_at_least(1).error_on(:last_name) | |
end | |
it "should measure length of string" do | |
"asdf".should have(4).characters |