Commit 1c4604bf authored by Robert Speicher's avatar Robert Speicher

"expect { }.not_to raise_error" no longer takes a specific class

parent 47251b85
...@@ -36,9 +36,7 @@ describe DeployKeysProject do ...@@ -36,9 +36,7 @@ describe DeployKeysProject do
it "doesn't destroy the deploy key" do it "doesn't destroy the deploy key" do
subject.destroy subject.destroy
expect { expect { deploy_key.reload }.not_to raise_error
deploy_key.reload
}.not_to raise_error(ActiveRecord::RecordNotFound)
end end
end end
...@@ -63,9 +61,7 @@ describe DeployKeysProject do ...@@ -63,9 +61,7 @@ describe DeployKeysProject do
it "doesn't destroy the deploy key" do it "doesn't destroy the deploy key" do
subject.destroy subject.destroy
expect { expect { deploy_key.reload }.not_to raise_error
deploy_key.reload
}.not_to raise_error(ActiveRecord::RecordNotFound)
end end
end end
end end
......
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