Module: HttpTestHarness
- Defined in:
- lib/http_test_harness.rb
Constant Summary collapse
- BASE_URL =
'http://localhost:9292'
Class Method Summary collapse
Class Method Details
.inspect(path) ⇒ Object
16 17 18 |
# File 'lib/http_test_harness.rb', line 16 def self.inspect(path) HTTParty.get("#{BASE_URL}#{path}") end |
.set(config) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/http_test_harness.rb', line 8 def self.set(config) HTTParty.put( "#{BASE_URL}/__config__/set_response", body: config.to_json, headers: { 'Content-Type' => 'application/json' } ) end |