spec/bearcat/client/groups_spec.rb in bearcat-1.2.16 vs spec/bearcat/client/groups_spec.rb in bearcat-1.2.17
- old
+ new
@@ -51,6 +51,12 @@
stub_put(@client, "/api/v1/groups/1").with(body: { name: name, description: description }).to_return(json_response("edited_group.json"))
edited_group = @client.edit_group(1, { name: name, description: description })
edited_group['name'] == name
edited_group['description'] == description
end
+
+ it 'deleted a group' do
+ stub_delete(@client, "/api/v1/groups/7").to_return(json_response("deleted_group.json"))
+ deleted_group = @client.delete_group(7)
+ deleted_group['id'] == 7
+ end
end
\ No newline at end of file