Module: HTTPSpec::DSL::Methods
- Defined in:
- lib/http_spec/dsl/methods.rb
Class Method Summary collapse
Class Method Details
.define_actions(*methods) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/http_spec/dsl/methods.rb', line 6 def self.define_actions(*methods) methods.each do |method| define_method(method) do |path, body=nil, headers=nil| request = Request.new(method, path, body, headers) client.dispatch(request) end end end |