Skip to content

Instantly share code, notes, and snippets.

@lkrych
Last active October 17, 2016 17:15
Show Gist options
  • Save lkrych/aa0ea4504329263bce2ee0a0fb8ddfd8 to your computer and use it in GitHub Desktop.
Save lkrych/aa0ea4504329263bce2ee0a0fb8ddfd8 to your computer and use it in GitHub Desktop.
The outline for testing the create function in the movies_controller
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