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

Version Path
xeroizer-2.18.1 test/unit/http_test.rb
xeroizer-2.17.1 test/unit/http_test.rb
xeroizer-2.16.5 test/unit/http_test.rb
xeroizer-2.16.4 test/unit/http_test.rb
xeroizer-2.16.3 test/unit/http_test.rb
xeroizer-2.16.1 test/unit/http_test.rb
xeroizer-2.16.0 test/unit/http_test.rb
xeroizer-2.15.9 test/unit/http_test.rb
xeroizer-2.15.8 test/unit/http_test.rb
xeroizer-2.15.7 test/unit/http_test.rb
xeroizer-2.15.6 test/unit/http_test.rb