spec/wayback/error/server_error_spec.rb in wayback-0.1.0 vs spec/wayback/error/server_error_spec.rb in wayback-0.2.0
- old
+ new
@@ -7,10 +7,10 @@
end
Wayback::Error::ServerError.errors.each do |status, exception|
context "when HTTP status is #{status}" do
before do
- stub_get("/list/timemap/link/gleu.ch").to_return(:status => status)
+ stub_get("/timemap/link/gleu.ch").to_return(:status => status)
end
it "raises #{exception.name}" do
expect{@client.list('gleu.ch')}.to raise_error exception
end
end