mockserver-client-ruby/lib/mockserver/mock_server_client.rb
# Create an expecation request to send to the expectation endpoint of
# @param expectation [Expectation] the expectation  to create the request from
# @return [Hash] a hash representing the request to use in registering an expectation with the mock server
# rubocop:disable Lint/LiteralInInterpolation
Create an expecation request to send to the expectation endpoint of
Create an expecation request to send to the expectation endpoint of
def create_expectation_request(expectation)
      expectation_request = camelized_hash(expectation)
      logger.debug("Expectation JSON: #{expectation_request.to_json}")
      fail "You can only set either of #{[HTTP_RESPONSE, HTTP_FORWARD]}. But not both" if expectation_request[HTTP_RESPONSE] && expectation_request[HTTP_FORWARD]
      expectation_request
    end
def create_expectation_request ( expectation ) expectation_request = camelized_hash ( expectation ) logger . debug ( "Expectation JSON: #{expectation_request.to_json}" ) fail "You can only set either of #{[HTTP_RESPONSE, HTTP_FORWARD]}. But not both" if expectation_request [ HTTP_RESPONSE ] && expectation_request [ HTTP_FORWARD ] expectation_request end
Create an expecation request to send to the expectation endpoint of
Create an expecation request to send to the expectation endpoint of
a hash representing the request to use in registering an expectation with the mock server rubocop:disable Lint/LiteralInInterpolation
a hash representing the request to use in registering an expectation with the mock server rubocop : disable Lint / LiteralInInterpolation
Hash
expectation
the expectation to create the request from
the expectation to create the request from