workos 9.4.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/block-generated-edits.yml +13 -0
- data/.github/workflows/ci.yml +1 -1
- data/.github/workflows/docs.yml +1 -1
- data/.github/workflows/lint.yml +1 -1
- data/.github/workflows/release-please.yml +7 -1
- data/.github/workflows/release.yml +1 -1
- data/.last-synced-sha +1 -1
- data/.oagen-manifest.json +197 -68
- data/.release-please-manifest.json +1 -1
- data/CHANGELOG.md +103 -0
- data/Gemfile.lock +2 -2
- data/README.md +15 -14
- data/lib/workos/agents/agent_admin_link_claim_attempt_to_external_user_request.rb +28 -0
- data/lib/workos/agents/agent_admin_link_claim_attempt_to_external_user_request_user.rb +22 -0
- data/lib/workos/agents/agent_admin_validate_credential_request.rb +25 -0
- data/lib/workos/agents/agent_credential_validation.rb +25 -0
- data/lib/workos/agents/agent_registration.rb +40 -0
- data/lib/workos/agents/agent_registration_agent_identity.rb +28 -0
- data/lib/workos/agents/agent_registration_claim.rb +31 -0
- data/lib/workos/agents/agent_registration_claim_claim_completion.rb +31 -0
- data/lib/workos/agents/claim_view_response.rb +28 -0
- data/lib/workos/agents/claim_view_response_organization.rb +7 -0
- data/lib/workos/agents.rb +93 -0
- data/lib/workos/api_keys/api_key_validation_response.rb +6 -2
- data/lib/workos/api_keys.rb +3 -4
- data/lib/workos/authorization/permission_created_data.rb +1 -34
- data/lib/workos/authorization/permission_deleted_data.rb +1 -1
- data/lib/workos/authorization/permission_updated_data.rb +1 -1
- data/lib/workos/authorization.rb +24 -24
- data/lib/workos/base_client.rb +4 -4
- data/lib/workos/client.rb +4 -0
- data/lib/workos/connect.rb +23 -19
- data/lib/workos/directory_sync.rb +10 -2
- data/lib/workos/groups.rb +7 -7
- data/lib/workos/inflections.rb +0 -1
- data/lib/workos/organization_domains.rb +4 -4
- data/lib/workos/organizations/organization_authorized_connect_application_list_data.rb +34 -0
- data/lib/workos/organizations.rb +57 -10
- data/lib/workos/pipes/api_key_installation.rb +25 -0
- data/lib/workos/pipes/{connected_account_dto.rb → connected_account_input.rb} +1 -1
- data/lib/workos/pipes/create_data_integration.rb +7 -1
- data/lib/workos/pipes/data_integration.rb +6 -0
- data/lib/workos/pipes/{data_integration_credentials_dto.rb → data_integration_credentials_input.rb} +1 -1
- data/lib/workos/pipes/data_integration_installation.rb +28 -0
- data/lib/workos/pipes/data_integrations_upsert_api_key_request.rb +1 -19
- data/lib/workos/pipes/update_data_integration.rb +4 -1
- data/lib/workos/pipes.rb +25 -16
- data/lib/workos/pipes_provider.rb +2 -2
- data/lib/workos/shared/access_token_agent_registration_credential_issued_data_detail.rb +25 -0
- data/lib/workos/shared/agent_registration_claim_attempt_created.rb +34 -0
- data/lib/workos/shared/agent_registration_claim_attempt_created_data.rb +40 -0
- data/lib/workos/shared/agent_registration_claim_completed.rb +34 -0
- data/lib/workos/shared/agent_registration_claim_completed_data.rb +40 -0
- data/lib/workos/shared/agent_registration_claim_completed_data_claimed_by.rb +22 -0
- data/lib/workos/shared/agent_registration_created.rb +34 -0
- data/lib/workos/{organization_domains/organization_domain_stand_alone.rb → shared/agent_registration_created_data.rb} +13 -16
- data/lib/workos/shared/agent_registration_created_data_agent_identity.rb +25 -0
- data/lib/workos/shared/agent_registration_credential_issued.rb +34 -0
- data/lib/workos/shared/agent_registration_credential_issued_data.rb +34 -0
- data/lib/workos/shared/agent_registration_credential_issued_data_detail.rb +22 -0
- data/lib/workos/shared/agent_registration_deleted.rb +34 -0
- data/lib/workos/shared/agent_registration_deleted_data.rb +18 -0
- data/lib/workos/shared/agent_registration_expired.rb +34 -0
- data/lib/workos/shared/agent_registration_expired_data.rb +7 -0
- data/lib/workos/shared/agent_registration_organization_switched.rb +34 -0
- data/lib/workos/shared/agent_registration_organization_switched_data.rb +25 -0
- data/lib/workos/shared/agent_registration_revoked.rb +34 -0
- data/lib/workos/shared/agent_registration_revoked_data.rb +7 -0
- data/lib/workos/shared/pipes_connected_account_connection_failed.rb +34 -0
- data/lib/workos/shared/pipes_connected_account_connection_failed_data.rb +46 -0
- data/lib/workos/shared/radar_challenge_created.rb +34 -0
- data/lib/workos/shared/radar_challenge_created_data.rb +28 -0
- data/lib/workos/sso/connection.rb +3 -3
- data/lib/workos/types/agent_admin_validate_credential_request_type.rb +13 -0
- data/lib/workos/types/agent_registration_created_data_kind.rb +14 -0
- data/lib/workos/types/agent_registration_created_data_method.rb +14 -0
- data/lib/workos/types/agent_registration_created_data_status.rb +15 -0
- data/lib/workos/types/{data_integration_credentials_type.rb → agent_registration_kind.rb} +1 -1
- data/lib/workos/types/{organization_domain_stand_alone_state.rb → agent_registration_status.rb} +1 -1
- data/lib/workos/types/applications_registration_types.rb +13 -0
- data/lib/workos/types/{organization_domain_stand_alone_verification_strategy.rb → claim_view_response_status.rb} +1 -1
- data/lib/workos/types/connected_account_input_state.rb +13 -0
- data/lib/workos/types/connected_account_state.rb +2 -1
- data/lib/workos/types/create_data_integration_auth_methods.rb +9 -0
- data/lib/workos/types/create_user_password_hash_type.rb +2 -1
- data/lib/workos/types/create_webhook_endpoint_events.rb +5 -1
- data/lib/workos/types/data_integration_auth_methods.rb +9 -0
- data/lib/workos/types/data_integration_credentials_input_type.rb +9 -0
- data/lib/workos/types/data_integrations_list_response_data_connected_account_state.rb +1 -6
- data/lib/workos/types/pipe_connected_account_state.rb +1 -5
- data/lib/workos/types/vault_kek_deleted_data_actor_source.rb +9 -0
- data/lib/workos/user_management/authentication_reauthentication_succeeded.rb +34 -0
- data/lib/workos/user_management/authentication_reauthentication_succeeded_data.rb +34 -0
- data/lib/workos/user_management/magic_auth_send_magic_auth_code_and_return_response.rb +26 -1
- data/lib/workos/user_management/radar_challenge.rb +43 -0
- data/lib/workos/user_management/user_create_response.rb +55 -1
- data/lib/workos/user_management.rb +155 -26
- data/lib/workos/vault/vault_kek_deleted.rb +34 -0
- data/lib/workos/vault/vault_kek_deleted_data.rb +31 -0
- data/lib/workos/vault.rb +4 -4
- data/lib/workos/version.rb +1 -1
- data/lib/workos/widgets.rb +2 -2
- data/lib/workos.rb +11 -0
- data/rbi/workos/access_token_agent_registration_credential_issued_data_detail.rbi +36 -0
- data/rbi/workos/agent_admin_link_claim_attempt_to_external_user_request.rbi +42 -0
- data/rbi/workos/agent_admin_link_claim_attempt_to_external_user_request_user.rbi +30 -0
- data/rbi/workos/agent_admin_validate_credential_request.rbi +36 -0
- data/rbi/workos/{sso_intent_options.rbi → agent_credential_validation.rbi} +11 -5
- data/rbi/workos/agent_registration.rbi +66 -0
- data/rbi/workos/agent_registration_agent_identity.rbi +42 -0
- data/rbi/workos/agent_registration_claim.rbi +48 -0
- data/rbi/workos/agent_registration_claim_attempt_created.rbi +54 -0
- data/rbi/workos/agent_registration_claim_attempt_created_data.rbi +66 -0
- data/rbi/workos/agent_registration_claim_claim_completion.rbi +48 -0
- data/rbi/workos/agent_registration_claim_completed.rbi +54 -0
- data/rbi/workos/agent_registration_claim_completed_data.rbi +66 -0
- data/rbi/workos/agent_registration_claim_completed_data_claimed_by.rbi +30 -0
- data/rbi/workos/agent_registration_created.rbi +54 -0
- data/rbi/workos/agent_registration_created_data.rbi +72 -0
- data/rbi/workos/agent_registration_created_data_agent_identity.rbi +36 -0
- data/rbi/workos/agent_registration_credential_issued.rbi +54 -0
- data/rbi/workos/agent_registration_credential_issued_data.rbi +54 -0
- data/rbi/workos/agent_registration_credential_issued_data_detail.rbi +30 -0
- data/rbi/workos/agent_registration_deleted.rbi +54 -0
- data/rbi/workos/{connection_option.rbi → agent_registration_deleted_data.rbi} +5 -5
- data/rbi/workos/agent_registration_expired.rbi +54 -0
- data/rbi/workos/{domain_verification_intent_options.rbi → agent_registration_expired_data.rbi} +5 -5
- data/rbi/workos/agent_registration_organization_switched.rbi +54 -0
- data/rbi/workos/agent_registration_organization_switched_data.rbi +36 -0
- data/rbi/workos/agent_registration_revoked.rbi +54 -0
- data/rbi/workos/agent_registration_revoked_data.rbi +24 -0
- data/rbi/workos/agents.rbi +42 -0
- data/rbi/workos/api_key_installation.rbi +36 -0
- data/rbi/workos/api_key_validation_response.rbi +6 -0
- data/rbi/workos/authentication_reauthentication_succeeded.rbi +54 -0
- data/rbi/workos/authentication_reauthentication_succeeded_data.rbi +54 -0
- data/rbi/workos/claim_view_response.rbi +42 -0
- data/rbi/workos/claim_view_response_organization.rbi +30 -0
- data/rbi/workos/client.rbi +3 -0
- data/rbi/workos/connect.rbi +2 -1
- data/rbi/workos/{connected_account_dto.rbi → connected_account_input.rbi} +1 -1
- data/rbi/workos/connection.rbi +4 -4
- data/rbi/workos/create_data_integration.rbi +14 -2
- data/rbi/workos/data_integration.rbi +12 -0
- data/rbi/workos/{data_integration_credentials_dto.rbi → data_integration_credentials_input.rbi} +1 -1
- data/rbi/workos/data_integration_installation.rbi +42 -0
- data/rbi/workos/directory_sync.rbi +3 -1
- data/rbi/workos/magic_auth_send_magic_auth_code_and_return_response.rbi +48 -0
- data/rbi/workos/organization_authorized_connect_application_list_data.rbi +54 -0
- data/rbi/workos/organization_domains.rbi +2 -2
- data/rbi/workos/organizations.rbi +12 -0
- data/rbi/workos/permission_created_data.rbi +6 -0
- data/rbi/workos/permission_deleted_data.rbi +6 -0
- data/rbi/workos/permission_updated_data.rbi +6 -0
- data/rbi/workos/pipes.rbi +7 -4
- data/rbi/workos/pipes_connected_account_connection_failed.rbi +54 -0
- data/rbi/workos/{organization_domain_stand_alone.rbi → pipes_connected_account_connection_failed_data.rbi} +23 -23
- data/rbi/workos/radar_challenge.rbi +72 -0
- data/rbi/workos/radar_challenge_created.rbi +54 -0
- data/rbi/workos/radar_challenge_created_data.rbi +42 -0
- data/rbi/workos/update_data_integration.rbi +8 -2
- data/rbi/workos/user_create_response.rbi +84 -0
- data/rbi/workos/user_management.rbi +16 -0
- data/rbi/workos/vault_kek_deleted.rbi +54 -0
- data/rbi/workos/vault_kek_deleted_data.rbi +48 -0
- data/rbi/workos/widget_session_token.rbi +2 -2
- data/rbi/workos/widgets.rbi +1 -1
- data/test/workos/test_agents.rb +49 -0
- data/test/workos/test_agents_model_round_trip.rb +165 -0
- data/test/workos/test_api_keys_model_round_trip.rb +307 -0
- data/test/workos/test_authorization_model_round_trip.rb +237 -0
- data/test/workos/test_base_client.rb +27 -0
- data/test/workos/test_client_api_model_round_trip.rb +31 -0
- data/test/workos/test_connect_model_round_trip.rb +175 -0
- data/test/workos/test_directory_sync_model_round_trip.rb +579 -0
- data/test/workos/test_feature_flags_model_round_trip.rb +580 -0
- data/test/workos/test_groups_model_round_trip.rb +56 -0
- data/test/workos/test_multi_factor_auth_model_round_trip.rb +192 -0
- data/test/workos/test_organization_domains_model_round_trip.rb +260 -0
- data/test/workos/test_organization_membership_model_round_trip.rb +89 -0
- data/test/workos/test_organizations.rb +9 -1
- data/test/workos/test_organizations_model_round_trip.rb +602 -0
- data/test/workos/test_pipes_model_round_trip.rb +40 -4
- data/test/workos/test_pipes_provider_model_round_trip.rb +75 -0
- data/test/workos/test_shared_model_round_trip.rb +787 -0
- data/test/workos/test_sso_model_round_trip.rb +422 -0
- data/test/workos/test_user_management.rb +46 -0
- data/test/workos/test_user_management_model_round_trip.rb +1540 -0
- data/test/workos/test_vault_model_round_trip.rb +571 -0
- data/test/workos/test_widgets.rb +2 -2
- data/test/workos/test_widgets_model_round_trip.rb +30 -0
- metadata +118 -19
- data/lib/workos/admin_portal/domain_verification_intent_options.rb +0 -18
- data/lib/workos/admin_portal/intent_options.rb +0 -22
- data/lib/workos/admin_portal/sso_intent_options.rb +0 -22
- data/lib/workos/sso/connection_option.rb +0 -18
- data/rbi/workos/intent_options.rbi +0 -30
- data/test/workos/test_model_round_trip.rb +0 -6
|
@@ -5,6 +5,128 @@
|
|
|
5
5
|
require "test_helper"
|
|
6
6
|
|
|
7
7
|
class ConnectModelRoundTripTest < Minitest::Test
|
|
8
|
+
def test_user_object_round_trip
|
|
9
|
+
fixture = {
|
|
10
|
+
"id" => "stub",
|
|
11
|
+
"email" => "stub",
|
|
12
|
+
"first_name" => "stub",
|
|
13
|
+
"last_name" => "stub",
|
|
14
|
+
"name" => "stub",
|
|
15
|
+
"metadata" => {}
|
|
16
|
+
}
|
|
17
|
+
model = WorkOS::UserObject.new(fixture.to_json)
|
|
18
|
+
json = model.to_h
|
|
19
|
+
assert_kind_of Hash, json
|
|
20
|
+
assert_equal fixture["id"], json[:id]
|
|
21
|
+
assert_equal fixture["email"], json[:email]
|
|
22
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def test_user_consent_option_round_trip
|
|
26
|
+
fixture = {
|
|
27
|
+
"claim" => "stub",
|
|
28
|
+
"type" => "enum",
|
|
29
|
+
"label" => "stub",
|
|
30
|
+
"choices" => []
|
|
31
|
+
}
|
|
32
|
+
model = WorkOS::UserConsentOption.new(fixture.to_json)
|
|
33
|
+
json = model.to_h
|
|
34
|
+
assert_kind_of Hash, json
|
|
35
|
+
assert_equal fixture["claim"], json[:claim]
|
|
36
|
+
assert_equal fixture["label"], json[:label]
|
|
37
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def test_user_management_login_request_round_trip
|
|
41
|
+
fixture = {
|
|
42
|
+
"external_auth_id" => "stub",
|
|
43
|
+
"user" => {},
|
|
44
|
+
"user_consent_options" => []
|
|
45
|
+
}
|
|
46
|
+
model = WorkOS::UserManagementLoginRequest.new(fixture.to_json)
|
|
47
|
+
json = model.to_h
|
|
48
|
+
assert_kind_of Hash, json
|
|
49
|
+
assert_equal fixture["external_auth_id"], json[:external_auth_id]
|
|
50
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def test_redirect_uri_input_round_trip
|
|
54
|
+
fixture = {
|
|
55
|
+
"uri" => "stub",
|
|
56
|
+
"default" => nil
|
|
57
|
+
}
|
|
58
|
+
model = WorkOS::RedirectUriInput.new(fixture.to_json)
|
|
59
|
+
json = model.to_h
|
|
60
|
+
assert_kind_of Hash, json
|
|
61
|
+
assert_equal fixture["uri"], json[:uri]
|
|
62
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
def test_create_oauth_application_round_trip
|
|
66
|
+
fixture = {
|
|
67
|
+
"name" => "stub",
|
|
68
|
+
"application_type" => "oauth",
|
|
69
|
+
"description" => nil,
|
|
70
|
+
"scopes" => nil,
|
|
71
|
+
"redirect_uris" => nil,
|
|
72
|
+
"uses_pkce" => nil,
|
|
73
|
+
"is_first_party" => true,
|
|
74
|
+
"organization_id" => nil
|
|
75
|
+
}
|
|
76
|
+
model = WorkOS::CreateOAuthApplication.new(fixture.to_json)
|
|
77
|
+
json = model.to_h
|
|
78
|
+
assert_kind_of Hash, json
|
|
79
|
+
assert_equal fixture["name"], json[:name]
|
|
80
|
+
assert_equal fixture["is_first_party"], json[:is_first_party]
|
|
81
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
def test_create_m2m_application_round_trip
|
|
85
|
+
fixture = {
|
|
86
|
+
"name" => "stub",
|
|
87
|
+
"application_type" => "m2m",
|
|
88
|
+
"description" => nil,
|
|
89
|
+
"scopes" => nil,
|
|
90
|
+
"organization_id" => "stub"
|
|
91
|
+
}
|
|
92
|
+
model = WorkOS::CreateM2MApplication.new(fixture.to_json)
|
|
93
|
+
json = model.to_h
|
|
94
|
+
assert_kind_of Hash, json
|
|
95
|
+
assert_equal fixture["name"], json[:name]
|
|
96
|
+
assert_equal fixture["organization_id"], json[:organization_id]
|
|
97
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
def test_update_oauth_application_round_trip
|
|
101
|
+
fixture = {
|
|
102
|
+
"name" => "stub",
|
|
103
|
+
"description" => nil,
|
|
104
|
+
"scopes" => nil,
|
|
105
|
+
"redirect_uris" => nil
|
|
106
|
+
}
|
|
107
|
+
model = WorkOS::UpdateOAuthApplication.new(fixture.to_json)
|
|
108
|
+
json = model.to_h
|
|
109
|
+
assert_kind_of Hash, json
|
|
110
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
def test_create_application_secret_round_trip
|
|
114
|
+
model = WorkOS::CreateApplicationSecret.new("{}")
|
|
115
|
+
json = model.to_h
|
|
116
|
+
assert_kind_of Hash, json
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
def test_external_auth_complete_response_round_trip
|
|
120
|
+
fixture = {
|
|
121
|
+
"redirect_uri" => "stub"
|
|
122
|
+
}
|
|
123
|
+
model = WorkOS::ExternalAuthCompleteResponse.new(fixture.to_json)
|
|
124
|
+
json = model.to_h
|
|
125
|
+
assert_kind_of Hash, json
|
|
126
|
+
assert_equal fixture["redirect_uri"], json[:redirect_uri]
|
|
127
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
128
|
+
end
|
|
129
|
+
|
|
8
130
|
def test_connect_application_round_trip
|
|
9
131
|
fixture = {
|
|
10
132
|
"object" => "connect_application",
|
|
@@ -27,4 +149,57 @@ class ConnectModelRoundTripTest < Minitest::Test
|
|
|
27
149
|
assert_equal fixture["updated_at"], json[:updated_at]
|
|
28
150
|
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
29
151
|
end
|
|
152
|
+
|
|
153
|
+
def test_new_connect_application_secret_round_trip
|
|
154
|
+
fixture = {
|
|
155
|
+
"object" => "connect_application_secret",
|
|
156
|
+
"id" => "stub",
|
|
157
|
+
"secret_hint" => "stub",
|
|
158
|
+
"last_used_at" => nil,
|
|
159
|
+
"created_at" => "stub",
|
|
160
|
+
"updated_at" => "stub",
|
|
161
|
+
"secret" => "stub"
|
|
162
|
+
}
|
|
163
|
+
model = WorkOS::NewConnectApplicationSecret.new(fixture.to_json)
|
|
164
|
+
json = model.to_h
|
|
165
|
+
assert_kind_of Hash, json
|
|
166
|
+
assert_equal fixture["id"], json[:id]
|
|
167
|
+
assert_equal fixture["secret_hint"], json[:secret_hint]
|
|
168
|
+
assert_nil json[:last_used_at]
|
|
169
|
+
assert_equal fixture["created_at"], json[:created_at]
|
|
170
|
+
assert_equal fixture["updated_at"], json[:updated_at]
|
|
171
|
+
assert_equal fixture["secret"], json[:secret]
|
|
172
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
def test_user_consent_option_choice_round_trip
|
|
176
|
+
fixture = {
|
|
177
|
+
"value" => "stub",
|
|
178
|
+
"label" => "stub"
|
|
179
|
+
}
|
|
180
|
+
model = WorkOS::UserConsentOptionChoice.new(fixture.to_json)
|
|
181
|
+
json = model.to_h
|
|
182
|
+
assert_kind_of Hash, json
|
|
183
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
def test_application_credentials_list_item_round_trip
|
|
187
|
+
fixture = {
|
|
188
|
+
"object" => "connect_application_secret",
|
|
189
|
+
"id" => "stub",
|
|
190
|
+
"secret_hint" => "stub",
|
|
191
|
+
"last_used_at" => nil,
|
|
192
|
+
"created_at" => "stub",
|
|
193
|
+
"updated_at" => "stub"
|
|
194
|
+
}
|
|
195
|
+
model = WorkOS::ApplicationCredentialsListItem.new(fixture.to_json)
|
|
196
|
+
json = model.to_h
|
|
197
|
+
assert_kind_of Hash, json
|
|
198
|
+
assert_equal fixture["id"], json[:id]
|
|
199
|
+
assert_equal fixture["secret_hint"], json[:secret_hint]
|
|
200
|
+
assert_nil json[:last_used_at]
|
|
201
|
+
assert_equal fixture["created_at"], json[:created_at]
|
|
202
|
+
assert_equal fixture["updated_at"], json[:updated_at]
|
|
203
|
+
fixture.each_key { |k| assert json.key?(k.to_sym) || json.key?(k), "Expected to_h to include key #{k}" }
|
|
204
|
+
end
|
|
30
205
|
end
|