test/yao/resources/test_role_assignment.rb in yao-0.15.0 vs test/yao/resources/test_role_assignment.rb in yao-0.16.0
- old
+ new
@@ -128,16 +128,16 @@
assert_equal('aaaa166533fd49f3b11b1cdce2430000', role_assignment.first.scope['project']['id'])
assert_requested(stub)
end
def test_project
- stub = stub_request(:get, "https://example.com:12345/tenants/456789").
+ stub = stub_request(:get, "https://example.com:12345/projects/456789").
to_return(
status: 200,
body: <<-JSON,
{
- "tenant": {
+ "project": {
"id": "456789"
}
}
JSON
headers: {'Content-Type' => 'application/json'}
@@ -150,10 +150,10 @@
}
},
}
role_assignment = Yao::RoleAssignment.new(params)
- assert_instance_of(Yao::Resources::Tenant, role_assignment.project)
+ assert_instance_of(Yao::Project, role_assignment.project)
assert_equal("456789", role_assignment.project.id)
assert_requested(stub)
end
end