Change test that used the assigns method to assert template

Signed-off-by: marcheing's avatarHeitor Reis <>
parent eb9b70e1
Pipeline #3597346 passed with stage
in 16 minutes and 33 seconds
......@@ -54,8 +54,8 @@ RSpec.describe ContentsController, type: :controller do
describe "GET #new" do
it "assigns a new content as @content" do
get :new, params: {}, session: valid_session
expect(assigns(:content)).to be_a_new(Content)
get :new
expect(response.status).to eq 200
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment