|
@@ -309,7 +309,7 @@ RSpec.describe 'User', type: :request, searchindex: true do
|
|
|
post '/api/v1/users', params: params, as: :json
|
|
|
expect(response).to have_http_status(:unprocessable_entity)
|
|
|
expect(json_response).to be_truthy
|
|
|
- expect(json_response['error']).to eq('Invalid email')
|
|
|
+ expect(json_response['error']).to eq("Invalid email 'some_what'")
|
|
|
|
|
|
# with valid attributes
|
|
|
params = { firstname: 'newfirstname123', note: 'some note' }
|