Last active
          October 17, 2016 17:15 
        
      - 
      
- 
        Save lkrych/aa0ea4504329263bce2ee0a0fb8ddfd8 to your computer and use it in GitHub Desktop. 
    The outline for testing the create function in the movies_controller
  
        
  
    
      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 'rails_helper' | |
| RSpec.describe MoviesController, type: :controller do | |
| describe "POST #create" do | |
| it "saves the new movie in the database" do | |
| end | |
| it "assigns the saved movie to @movie" do | |
| end | |
| it "redirects to the home page" do | |
| end | |
| end | |
| end | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment