Sha256: 9ba04209f11ed508e195653a74669e79c879c010c17dc73f4d8a75008cb641a7

Contents?: true

Size: 536 Bytes

Versions: 14

Compression:

Stored size: 536 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
require 'pho'
require 'test/unit'

class StoreUtilTest < Test::Unit::TestCase

  def test_build_uri
    store = Pho::Store.new("http://api.talis.com/stores/testing")
    
    assert_equal("http://api.talis.com/stores/testing/meta", store.build_uri("/meta") )
    assert_equal("http://api.talis.com/stores/testing/meta", store.build_uri("meta") )
    assert_equal("http://api.talis.com/stores/testing/meta", store.build_uri("http://api.talis.com/stores/testing/meta") )
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
pho-0.7.3 tests/tc_store_util.rb
pho-0.7.2 tests/tc_store_util.rb
pho-0.7.1 tests/tc_store_util.rb
pho-0.7 tests/tc_store_util.rb
pho-0.6.2 tests/tc_store_util.rb
pho-0.6.1 tests/tc_store_util.rb
pho-0.6 tests/tc_store_util.rb
pho-0.4.1 tests/tc_store_util.rb
pho-0.3 tests/tc_store_util.rb
pho-0.2 tests/tc_store_util.rb
pho-0.4 tests/tc_store_util.rb
pho-0.1 tests/tc_store_util.rb
pho-0.0.1 tests/tc_store_util.rb
pho-0.5 tests/tc_store_util.rb