Sha256: 70e35fffd3b977ab209aec63ce15d779aaf6f4791ccf1a038988962934a87d04
Contents?: true
Size: 566 Bytes
Versions: 11
Compression:
Stored size: 566 Bytes
Contents
require 'test_helper' class HttpTest < Test::Unit::TestCase include TestHelper def setup @headers = {"User-Agent" => "Xeroizer/2.15.5"} @application = Xeroizer::PublicApplication.new(CONSUMER_KEY, CONSUMER_SECRET, :default_headers => @headers) end context "default_headers" do should "recognize default_headers" do Xeroizer::OAuth.any_instance.expects(:get).with("/test", has_entry(@headers)).returns(stub(:plain_body => "", :code => "200")) @application.http_get(@application.client, "http://example.com/test") end end end
Version data entries
11 entries across 11 versions & 1 rubygems