summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-05-18 16:40:32 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-06-10 01:31:27 -0400
commit1c4604bff67f612d8c74be499891b04f51a7821a (patch)
tree8f9f1bb138ef9b3974a0f8fd25cddb737bcc8f01 /spec/models
parent47251b85e06c84e9303ddbd06098ecc06c05d269 (diff)
downloadgitlab-ce-1c4604bff67f612d8c74be499891b04f51a7821a.tar.gz
"expect { }.not_to raise_error" no longer takes a specific class
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/deploy_keys_project_spec.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/models/deploy_keys_project_spec.rb b/spec/models/deploy_keys_project_spec.rb
index 7032b777144..705ef257d86 100644
--- a/spec/models/deploy_keys_project_spec.rb
+++ b/spec/models/deploy_keys_project_spec.rb
@@ -36,9 +36,7 @@ describe DeployKeysProject do
it "doesn't destroy the deploy key" do
subject.destroy
- expect {
- deploy_key.reload
- }.not_to raise_error(ActiveRecord::RecordNotFound)
+ expect { deploy_key.reload }.not_to raise_error
end
end
@@ -63,9 +61,7 @@ describe DeployKeysProject do
it "doesn't destroy the deploy key" do
subject.destroy
- expect {
- deploy_key.reload
- }.not_to raise_error(ActiveRecord::RecordNotFound)
+ expect { deploy_key.reload }.not_to raise_error
end
end
end