extracted method

This commit is contained in:
Hauke Klement
2015-02-09 16:24:33 +01:00
parent 342c3a153c
commit 232c6b398f
5 changed files with 14 additions and 10 deletions

View File

@ -21,7 +21,7 @@ describe SubmissionsController do
expect { request.call }.to change(Submission, :count).by(1)
end
expect_content_type('application/json')
expect_json
expect_status(201)
end
@ -29,7 +29,7 @@ describe SubmissionsController do
before(:each) { post :create, submission: {} }
expect_assigns(submission: Submission)
expect_content_type('application/json')
expect_json
expect_status(422)
end
end
@ -169,7 +169,7 @@ describe SubmissionsController do
expect_assigns(docker_client: DockerClient)
expect_assigns(submission: :submission)
expect_content_type('application/json')
expect_json
expect_status(200)
end
end