lib/sippy_cup/scenario.rb in sippy_cup-0.4.0 vs lib/sippy_cup/scenario.rb in sippy_cup-0.4.1

- old
+ new

@@ -1,5 +1,6 @@ +# encoding: utf-8 require 'nokogiri' require 'psych' require 'active_support/core_ext/hash' require 'tempfile' @@ -252,10 +253,10 @@ # Sets an expectation for a SIP 200 message from the remote party # # @param [Hash] opts A set of options to modify the expectation # @option opts [true, false] :optional Whether or not receipt of the message is optional. Defaults to false. # - def receive_200(opts = {}) + def receive_ok(opts = {}) recv({ response: 200 }.merge(opts)) end alias :receive_200 :receive_ok #