summaryrefslogtreecommitdiff
path: root/spec/requests
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-09-21 15:35:29 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-09-21 15:35:29 -0400
commit2f88459297d9fe8a33f608bd924f0bd5ad40161b (patch)
tree9587f329baa0cc80e9f1db48e80fc6aebda117fd /spec/requests
parentd4a960161eecf5730b56d3f375573fa39aa67e95 (diff)
downloadgitlab-ce-2f88459297d9fe8a33f608bd924f0bd5ad40161b.tar.gz
Ensure raise_error expectations provide argumentsrs-fix-spec-warnings
Diffstat (limited to 'spec/requests')
-rw-r--r--spec/requests/ci/api/projects_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/requests/ci/api/projects_spec.rb b/spec/requests/ci/api/projects_spec.rb
index 2adae52e79e..409f47fa448 100644
--- a/spec/requests/ci/api/projects_spec.rb
+++ b/spec/requests/ci/api/projects_spec.rb
@@ -165,7 +165,8 @@ describe Ci::API::API do
project.gl_project.team << [user, :master]
delete ci_api("/projects/#{project.id}"), options
expect(response.status).to eq(200)
- expect { project.reload }.to raise_error
+ expect { project.reload }.
+ to raise_error(ActiveRecord::RecordNotFound)
end
it "non-manager is not authorized" do