spec/wayback/error/client_error_spec.rb in wayback-0.1.0 vs spec/wayback/error/client_error_spec.rb in wayback-0.2.0

- old
+ new

@@ -9,10 +9,10 @@ Wayback::Error::ClientError.errors.each do |status, exception| [nil, "error"].each do |body| context "when HTTP status is #{status} and body is #{body.inspect}" do before do body_message = '<wayback><error><title>Hrm.</title><message>Wayback Machine doesn&apos;t have that page archived.</message></error></wayback>' unless body.nil? - stub_get("/list/timemap/link/gleu.ch").to_return(:body => body_message, :status => status) + stub_get("/timemap/link/gleu.ch").to_return(:body => body_message, :status => status) end it "raises #{exception.name}" do expect{@client.list('gleu.ch')}.to raise_error exception end end