test/yao/test_read_only.rb in yao-0.7.0 vs test/yao/test_read_only.rb in yao-0.8.0

- old
+ new

@@ -15,27 +15,27 @@ tenant_name tenant password password end @username = username - @get_stub = stub_request(:get, "#{auth_url}/users?name=#{username}") + @get_stub = stub_request(:get, "#{auth_url}/users/#{username}") @post_stub = stub_request(:post, "#{auth_url}/users") end def test_read_only Yao.read_only do - Yao::User.get_by_name(@username) + Yao::User.get(@username) Yao::User.create(name: "foo", email: "bar", password: "baz") end assert_requested @get_stub assert_not_requested @post_stub end def test_read_only! assert_raise Yao::ReadOnlyViolationError do Yao.read_only! do - Yao::User.get_by_name(@username) + Yao::User.get(@username) Yao::User.create(name: "foo", email: "bar", password: "baz") end end assert_requested @get_stub