summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-02-25 00:20:59 -0600
committerHombreLaser <sebastian-440@live.com>2023-02-25 00:20:59 -0600
commit6b49fe21f76883e039a2c149ecd5906c9d038de3 (patch)
tree032dd45d5ddf480ffb0d49708d8e3a47d75c4d1b /spec/support/shared_examples
parent6f0540d9de018f7dc9f474bdc619c8231282f19d (diff)
Añade spec de creación de usuarios
Diffstat (limited to 'spec/support/shared_examples')
-rw-r--r--spec/support/shared_examples/requests/post_request.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/shared_examples/requests/post_request.rb b/spec/support/shared_examples/requests/post_request.rb
index 6ea2a86..a253281 100644
--- a/spec/support/shared_examples/requests/post_request.rb
+++ b/spec/support/shared_examples/requests/post_request.rb
@@ -11,9 +11,9 @@ RSpec.shared_examples 'a POST request' do
context 'with incorrect parameters' do
it 'returns a client side error http status and a error message' do
- post('/api/authenticate', params: wrong_params.to_json, headers:)
+ post(route, params: wrong_params.to_json, headers:)
expect(response).to have_http_status(desired_error_status)
- expect(response.body).to include(expected_error_message)
+ expect(response.body).to include_strings(expected_error_messages)
end
end
end