spec/ragios-client_spec.rb in ragios-client-0.0.3 vs spec/ragios-client_spec.rb in ragios-client-0.0.4
- old
+ new
@@ -58,11 +58,11 @@
e.message.should include("No Notifier Found")
end
end
it "cannot add a badly formed monitor" do
- expect{@ragios.add("bad data")}.to raise_error(Ragios::ClientException)
+ expect{@ragios.add("bad data")}.to raise_error(JSON::GeneratorError)
end
it "should retrieve a monitor by id" do
#setup starts
unique_name = "Google #{Time.now.to_i}"
@@ -156,10 +156,10 @@
returned_monitors = @ragios.add monitors
monitor_id = returned_monitors.first[:_id]
#setup ends
- expect { @ragios.update(monitor_id,"bad data") }.to raise_error(Ragios::ClientException)
+ expect { @ragios.update(monitor_id,"bad data") }.to raise_error(JSON::GeneratorError)
#teardown
hash = @ragios.delete(monitor_id)
hash[:ok].should == true
end