Created
          December 24, 2016 18:21 
        
      - 
      
- 
        Save bleonard/0e690498e06dc91147a956ac11261453 to your computer and use it in GitHub Desktop. 
  
    
      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
    
  
  
    
  | describe Content::Post do | |
| fixtures :users | |
| it "should be associated with a user" do | |
| user = users(:willy) | |
| post = Content::Post.new(content: "words") | |
| post.user = user | |
| post.save.should == true | |
| user.posts.count.should == 1 | |
| end | |
| end | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment