Sha256: 1cb5984ea262d76572551d41b73a787106aa42403437b37e1d28f930d43f7049
Contents?: true
Size: 540 Bytes
Versions: 2
Compression:
Stored size: 540 Bytes
Contents
require File.join '.', 'test', 'helper' class SystemInternet class << self def execute(request) require 't' reply = T::Internet.new.execute(T::Request.new(:verb => :get, :uri => "http://api.twitter.com/1.1/statuses")) Richard::Response.new :status => reply.code end end end describe "the internet adapter" do it "can be asked to execute a basic get" do reply = SystemInternet.execute Request.new(:verb => "GET", :uri => "http://api.twitter.com/1.1/statuses") reply.status.must_equal 400 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
richard_iii-0.1.1 | test/integration.tests/adapters/internet.rb |
richard_iii-0.1.0 | test/integration.tests/adapters/internet.rb |