Sha256: ecb488968518f9712ca4f72a5682fe03d2a74c5794da4fffe953e2887765b7a2
Contents?: true
Size: 559 Bytes
Versions: 1
Compression:
Stored size: 559 Bytes
Contents
require_relative '../test_helper' module Excon # AddressableTest # # Verifies the templated uri being parsed correctly by Addressable::Template. # class AddressableTest < Minitest::Test def setup Excon.defaults[:mock] = true Excon.stub({}, status: 200) end def test_expand_templated_uri conn = Excon.new('http://www.example.com/{uid}', expand: { uid: 'hello' }) assert_equal '/hello', conn.data[:path] assert_equal 200, conn.get.status end def teardown Excon.stubs.clear end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
excon-addressable-0.1.0 | test/excon/addressable_test.rb |