Module: RocketPants::TestHelper
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/rocket_pants/test_helper.rb
Defined Under Namespace
Modules: ClassMethods, ResponseHelper
Instance Method Summary
collapse
Instance Method Details
#decoded_count ⇒ Object
60
61
62
|
# File 'lib/rocket_pants/test_helper.rb', line 60
def decoded_count
response.decoded_body[:count]
end
|
#decoded_error_class ⇒ Object
64
65
66
67
|
# File 'lib/rocket_pants/test_helper.rb', line 64
def decoded_error_class
error = response.decoded_body.try :error
error.presence && RocketPants::Errors[error]
end
|
56
57
58
|
# File 'lib/rocket_pants/test_helper.rb', line 56
def
response.decoded_body.try :pagination
end
|
#decoded_response ⇒ Object
52
53
54
|
# File 'lib/rocket_pants/test_helper.rb', line 52
def decoded_response
value = response.decoded_body.try(:response)
end
|
#have_decoded_response(value) ⇒ Object
71
72
73
|
# File 'lib/rocket_pants/test_helper.rb', line 71
def have_decoded_response(value)
response = normalise_value(value)
end
|