Commits

Michael Granger committed 12f781e

Test idempotence of DELETE /<uuid>

  • Participants
  • Parent commits 60bb9cf

Comments (0)

Files changed (1)

spec/thingfish_spec.rb

 		req = factory.delete( "/#{uuid}" )
 		result = handler.handle( req )
 
-		expect( uuid ).to_not be_nil
 		expect( result.status_line ).to match( /200 ok/i )
 		expect( handler.metastore ).to_not include( uuid )
 		expect( handler.datastore ).to_not include( uuid )
 	end
 
+
+	it "doesn't error when asked to remove an object that doesn't exist" do
+		req = factory.delete( "/#{TEST_UUID}" )
+		result = handler.handle( req )
+
+		expect( result.status_line ).to match( /200 ok/i )
+	end
+
 end
 
 # vim: set nosta noet ts=4 sw=4 ft=rspec: