diff --git a/spec/requests/api/v3/user/create_user_common_examples.rb b/spec/requests/api/v3/user/create_user_common_examples.rb index 9403287010e7..5ecd186251ce 100644 --- a/spec/requests/api/v3/user/create_user_common_examples.rb +++ b/spec/requests/api/v3/user/create_user_common_examples.rb @@ -70,7 +70,7 @@ expect(errors.count).to eq(5) expect(errors.collect { |el| el['_embedded']['details']['attribute'] }) - .to contain_exactly('password', 'login', 'firstname', 'lastname', 'email') + .to contain_exactly('password', 'login', 'firstName', 'lastName', 'email') expect(last_response.body) .to be_json_eql('urn:openproject-org:api:v3:errors:MultipleErrors'.to_json) @@ -131,7 +131,7 @@ expect(errors.count).to eq 4 attributes = errors.map { |error| error.dig('_embedded', 'details', 'attribute') } - expect(attributes).to contain_exactly('login', 'firstname', 'lastname', 'email') + expect(attributes).to contain_exactly('login', 'firstName', 'lastName', 'email') end end end