spec/acceptance/digital_assets_spec.rb in daengine-0.6.21 vs spec/acceptance/digital_assets_spec.rb in daengine-0.6.22
- old
+ new
@@ -107,11 +107,15 @@
let(:da) {FactoryGirl.create :digital_asset, digital_asset_id: 'foo-bar-digital-asset-id'}
let(:id) {da.digital_asset_id}
example "delete a digital_asset" do
do_request()
status.should eq(200)
- expect { DigitalAsset.find(id) }.to raise_error
- end
+ expect { DigitalAsset.find(id) }.to raise_error
+ end
+ example "returns a 404 for docs we dont have in the DB" do
+ do_request(id: 'not-found-doc')
+ status.should == 404
+ end
end
get "/" do
example_request "no-op" do
true.should eq(true)
end