spec/lib/zoom/actions/webinar/update_spec.rb in zoom_rb-0.9.0 vs spec/lib/zoom/actions/webinar/update_spec.rb in zoom_rb-0.9.1
- old
+ new
@@ -12,11 +12,11 @@
stub_request(
:patch,
zoom_url("/webinars/#{args[:id]}")
).to_return(status: 204,
body: json_response('webinar', 'update'),
- headers: {"Content-Type"=> "application/json"})
+ headers: { 'Content-Type' => 'application/json' })
end
it "requires a 'id' argument" do
expect { zc.webinar_update(filter_key(args, :id)) }.to raise_error(Zoom::ParameterMissing, [:id].to_s)
end
@@ -31,10 +31,10 @@
stub_request(
:patch,
zoom_url("/webinars/#{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.webinar_update(args) }.to raise_error(Zoom::Error)
end