Module: Spree::TestingSupport::Controllers
- Defined in:
- lib/spree/testing_support/controllers.rb
Instance Method Summary collapse
Instance Method Details
#app ⇒ Object
14 15 16 |
# File 'lib/spree/testing_support/controllers.rb', line 14 def app described_class end |
#auth ⇒ Object
6 7 8 |
# File 'lib/spree/testing_support/controllers.rb', line 6 def auth { 'HTTP_X_HUB_TOKEN' => ENV['ENDPOINT_KEY'], 'CONTENT_TYPE' => 'application/json' } end |
#json_response ⇒ Object
10 11 12 |
# File 'lib/spree/testing_support/controllers.rb', line 10 def json_response @json_response ||= JSON.parse(last_response.body) end |