Sha256: 999512baeb165253c0d7de79cc7804ab6baf67b7e35e55144fcd921e56b83725
Contents?: true
Size: 517 Bytes
Versions: 4
Compression:
Stored size: 517 Bytes
Contents
require 'helper' describe Twitter::Error::ServerError do before do @client = Twitter::Client.new end Twitter::Error::ServerError.errors.each do |status, exception| context "when HTTP status is #{status}" do before do stub_get("/1.1/statuses/user_timeline.json").with(:query => {:screen_name => 'sferik'}).to_return(:status => status) end it "raises #{exception.name}" do expect{@client.user_timeline('sferik')}.to raise_error(exception) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems