Created
          February 28, 2009 20:14 
        
      - 
      
- 
        Save jcarnegie/72092 to your computer and use it in GitHub Desktop. 
    mytest
  
        
  
    
      This file contains hidden or 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 | |
| end | |
| end | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment