lib/soaspec.rb in soaspec-0.0.34 vs lib/soaspec.rb in soaspec-0.0.35

- old
+ new

@@ -81,9 +81,25 @@ # @return [Exchange] Instance of Exchange class. Assertions are made by default on the response body def post(name, params = {}) Exchange.new(name, method: :post, **params) end + # Make REST Patch Exchange + # @param [String] name Name of test displayed + # @param [Hash] params Exchange parameters + # @return [Exchange] Instance of Exchange class. Assertions are made by default on the response body + def patch(name, params = {}) + Exchange.new(name, method: :patch, **params) + end + + # Make REST Put Exchange + # @param [String] name Name of test displayed + # @param [Hash] params Exchange parameters + # @return [Exchange] Instance of Exchange class. Assertions are made by default on the response body + def put(name, params = {}) + Exchange.new(name, method: :put, **params) + end + # Make REST Get Exchange # @param [String] name Name of test displayed # @param [Hash] params Exchange parameters # @return [Exchange] Instance of Exchange class. Assertions are made by default on the response body def get(name, params = {})