Sha256: eeaa7b242f0b50dbde84f3adb670aa88c2be3e6ee7c04170cb365486d54a2c44
Contents?: true
Size: 454 Bytes
Versions: 3
Compression:
Stored size: 454 Bytes
Contents
require 'helper' describe Wayback::Error::ServerError do before do @client = Wayback::Client.new end Wayback::Error::ServerError.errors.each do |status, exception| context "when HTTP status is #{status}" do before do 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 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wayback-0.3.1 | spec/wayback/error/server_error_spec.rb |
wayback-0.2.1 | spec/wayback/error/server_error_spec.rb |
wayback-0.2.0 | spec/wayback/error/server_error_spec.rb |