diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-05-18 16:40:32 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-06-10 01:31:27 -0400 |
commit | 1c4604bff67f612d8c74be499891b04f51a7821a (patch) | |
tree | 8f9f1bb138ef9b3974a0f8fd25cddb737bcc8f01 /spec/models | |
parent | 47251b85e06c84e9303ddbd06098ecc06c05d269 (diff) | |
download | gitlab-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.rb | 8 |
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 |