test/yao/test_read_only.rb in yao-0.3.2 vs test/yao/test_read_only.rb in yao-0.3.3

- old
+ new

@@ -1,10 +1,10 @@ class TestOnly < Test::Unit::TestCase include AuthStub def setup - auth_url = "http://endpoint.example.com:12345" + auth_url = "http://endpoint.example.com:12345/v2.0" username = "udzura" tenant = "example" password = "XXXXXXXX" stub_auth_request(auth_url, username, password, tenant) @@ -15,11 +15,11 @@ tenant_name tenant password password end @username = username - @get_stub = stub_request(:get, "#{auth_url}/v2.0/users?name=#{username}") - @post_stub = stub_request(:post, "#{auth_url}/v2.0/users") + @get_stub = stub_request(:get, "#{auth_url}/users?name=#{username}") + @post_stub = stub_request(:post, "#{auth_url}/users") end def test_read_only Yao.read_only do Yao::User.get_by_name(@username)