Module: Shaf::Spec::HttpUtils

Includes:
Rack::Test::Methods
Included in:
IntegrationSpec
Defined in:
lib/shaf/spec/http_method_utils.rb

Instance Method Summary collapse

Instance Method Details

#headersObject



28
29
30
# File 'lib/shaf/spec/http_method_utils.rb', line 28

def headers
  last_response&.headers || {}
end

#statusObject



24
25
26
# File 'lib/shaf/spec/http_method_utils.rb', line 24

def status
  last_response&.status
end