spec/integration/lib/auth0/api/v2/api_roles_spec.rb in auth0-4.8.0 vs spec/integration/lib/auth0/api/v2/api_roles_spec.rb in auth0-4.9.0
- old
+ new
@@ -8,15 +8,15 @@
@test_user_name = "#{entity_suffix}-username-for-roles"
@test_user_email = "#{entity_suffix}-#{@test_user_name}@auth0.com"
@test_api_name = "#{entity_suffix}-test-api-for-roles"
- @test_api_scope = 'test:scope'
@test_role_name = "#{entity_suffix}-test-role"
- @test_permission = Permission.new("#{entity_suffix}-test-permission", @test_api_name)
+ @test_permission_name = "#{entity_suffix}-test-permission"
+ @test_permission = Permission.new(@test_permission_name, @test_api_name)
VCR.use_cassette('Auth0_Api_V2_Roles/create_test_user') do
@test_user ||= client.create_user(
@test_user_name,
email: @test_user_email,
@@ -27,10 +27,10 @@
VCR.use_cassette('Auth0_Api_V2_Roles/create_test_api') do
@test_api ||= client.create_resource_server(
@test_api_name,
name: @test_api_name,
- scopes: [{ value: @test_api_scope }]
+ scopes: [{ value: @test_permission_name }]
)
end
VCR.use_cassette('Auth0_Api_V2_Roles/create_test_role') do
@test_role ||= client.create_role(