Class: APIMatchers::HTTPStatusCode::BeUnprocessableEntity
- Inherits:
-
Base
- Object
- Base
- APIMatchers::HTTPStatusCode::BeUnprocessableEntity
show all
- Defined in:
- lib/api_matchers/http_status_code/be_unprocessable_entity.rb
Instance Attribute Summary
Attributes inherited from Base
#setup
Instance Method Summary
collapse
Methods inherited from Base
#find_http_status_code, #initialize, #matches?
Instance Method Details
#description ⇒ Object
16
17
18
|
# File 'lib/api_matchers/http_status_code/be_unprocessable_entity.rb', line 16
def description
"be Unprocessable entity with the status '422'"
end
|
#expected_status_code ⇒ Object
4
5
6
|
# File 'lib/api_matchers/http_status_code/be_unprocessable_entity.rb', line 4
def expected_status_code
422
end
|
#failure_message ⇒ Object
Also known as:
failure_message_for_should
8
9
10
|
# File 'lib/api_matchers/http_status_code/be_unprocessable_entity.rb', line 8
def failure_message
%Q{expected that '#{@http_status_code}' to be Unprocessable entity with the status '#{expected_status_code}'.}
end
|
#failure_message_when_negated ⇒ Object
Also known as:
failure_message_for_should_not
12
13
14
|
# File 'lib/api_matchers/http_status_code/be_unprocessable_entity.rb', line 12
def failure_message_when_negated
%Q{expected that '#{@http_status_code}' to NOT be Unprocessable entity with the status '#{expected_status_code}'.}
end
|