lib/soaspec/cucumber/generic_steps.rb in soaspec-0.2.31 vs lib/soaspec/cucumber/generic_steps.rb in soaspec-0.2.32

- old
+ new

@@ -31,9 +31,16 @@ # I use the path pet Given 'I use the path {word}' do |suburl| current_exchange.suburl = suburl end +# Add onto the base_url to make a complete url for the test +# @example base_url is 'http://petstore.swagger.io/v2' and I want a post to 'http://petstore.swagger.io/v2/basic.json' +# I use the path 'basic.json' +Given 'I use the path {string}' do |suburl| + current_exchange.suburl = suburl +end + # Add a query parameter for http 'get' requests. e.g. will add '?filter_key=filter_value' onto URL # @example To create a query for '?status=sold' # And I filter 'status' by 'sold' # @example To add a query for 'area' being 'australia' to make a total of '?status=sold&area=austrialia' # And I filter 'area' by 'australia'