lib/soaspec/exchange/exchange.rb in soaspec-0.2.11 vs lib/soaspec/exchange/exchange.rb in soaspec-0.2.12
- old
+ new
@@ -41,9 +41,11 @@
# @return [Boolean] Soaspec::ExchangeHandler used by this exchange
def default_handler_used
nil
end
+ # Create new Exchange according to parameters set. A response will be made if called
+ # explicitly with 'response' method or through other methods that use it like 'status_code'
# @param [Symbol, String] name Name shown in RSpec run
# @param [Hash] override_parameters Parameters to override for default params
def initialize(name = self.class.to_s, override_parameters = {})
self.test_name ||= name.to_s
# As a last resort this uses the global parameter. The handler should be set straight before an exchange is made to use this