module RspecApiHelpers::Headers
Public Instance Methods
_headers()
click to toggle source
# File lib/rspec_api_helpers/headers.rb, line 7 def _headers headers = OpenStruct.new headers.json = { 'CONTENT_TYPE' => 'application/json', 'ACCEPT' => 'application/json' } headers end
headers_for(type)
click to toggle source
# File lib/rspec_api_helpers/headers.rb, line 3 def headers_for(type) _headers.send type end