spec/lib/zoom/actions/user/delete_spec.rb in zoom_rb-0.9.0 vs spec/lib/zoom/actions/user/delete_spec.rb in zoom_rb-0.9.1
- old
+ new
@@ -12,11 +12,11 @@
stub_request(
:delete,
zoom_url("/users/#{args[:id]}")
).to_return(status: 204,
body: json_response('user', 'delete'),
- headers: {"Content-Type"=> "application/json"})
+ headers: { 'Content-Type' => 'application/json' })
end
it 'requires id param' do
expect { zc.user_delete(filter_key(args, :id)) }.to raise_error(Zoom::ParameterMissing, [:id].to_s)
end
@@ -31,10 +31,10 @@
stub_request(
:delete,
zoom_url("/users/#{args[:id]}")
).to_return(status: 404,
body: json_response('error', 'not_found'),
- headers: {"Content-Type"=> "application/json"})
+ headers: { 'Content-Type' => 'application/json' })
end
it 'raises an error' do
expect { zc.user_delete(args) }.to raise_error(Zoom::Error)
end