test/yao/resources/test_meter.rb in yao-0.15.0 vs test/yao/resources/test_meter.rb in yao-0.16.0

- old
+ new

@@ -86,17 +86,17 @@ assert_equal("00000000-0000-0000-0000-000000000000", meter.resource.id) assert_requested(stub) end - def test_tenant - stub = stub_request(:get, "https://example.com:12345/tenants/00000000-0000-0000-0000-000000000000") + def test_project + stub = stub_request(:get, "https://example.com:12345/projects/00000000-0000-0000-0000-000000000000") .to_return( status: 200, body: <<-JSON, { - "tenant": { + "project": { "id": "00000000-0000-0000-0000-000000000000" } } JSON headers: {'Content-Type' => 'application/json'} @@ -105,11 +105,11 @@ params = { "project_id" => "00000000-0000-0000-0000-000000000000", } meter = Yao::Meter.new(params) - assert_instance_of(Yao::Tenant, meter.tenant) - assert_equal("00000000-0000-0000-0000-000000000000", meter.tenant.id) + assert_instance_of(Yao::Project, meter.project) + assert_equal("00000000-0000-0000-0000-000000000000", meter.project.id) assert_requested(stub) end def test_user