Sha256: c8ec0fefe2c3d732a59616c24318af04e776a761e3c69ea2389cf9cb0d9ef84f
Contents?: true
Size: 575 Bytes
Versions: 2
Compression:
Stored size: 575 Bytes
Contents
require 'test_helper' class HttpTest < Test::Unit::TestCase include TestHelper context "default_headers" do setup do @headers = { "User-Agent" => "Xeroizer/2.15.5" } @application = Xeroizer::PublicApplication.new(CONSUMER_KEY, CONSUMER_SECRET, :default_headers => @headers) end 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xeroizer-2.20.0 | test/unit/http_test.rb |
xeroizer-2.19.0 | test/unit/http_test.rb |