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
58
59
60
|
# File 'lib/rocket_pants/test_helper.rb', line 58
def decoded_count
response.decoded_body[:count]
end
|
#decoded_error_class ⇒ Object
62
63
64
65
|
# File 'lib/rocket_pants/test_helper.rb', line 62
def decoded_error_class
error = response.decoded_body.try :error
error.presence && RocketPants::Errors[error]
end
|
54
55
56
|
# File 'lib/rocket_pants/test_helper.rb', line 54
def
response.decoded_body.try :pagination
end
|
#decoded_response ⇒ Object
50
51
52
|
# File 'lib/rocket_pants/test_helper.rb', line 50
def decoded_response
value = response.decoded_body.try(:response)
end
|
#have_decoded_response(value) ⇒ Object
69
70
71
|
# File 'lib/rocket_pants/test_helper.rb', line 69
def have_decoded_response(value)
response = normalise_value(value)
end
|