lib/soaspec/exchange_handlers/rest_handler.rb in soaspec-0.1.3 vs lib/soaspec/exchange_handlers/rest_handler.rb in soaspec-0.1.4
- old
+ new
@@ -300,11 +300,11 @@
methods.each do |rest_method|
# Make REST Exchange within this Handler context
# @param [Hash] params Exchange parameters
# @return [Exchange] Instance of Exchange class. Assertions are made by default on the response body
- define_method(rest_method) do |params|
- params ||= {}
+ define_method(rest_method) do |params = {}|
+ # params ||= {}
params[:name] ||= rest_method
new(params[:name])
Exchange.new(params[:name], method: rest_method.to_sym, **params)
end
end
\ No newline at end of file