Sha256: fe40d3b5c3ac4879ab57cac898ae3086783059aed6b923734a8e90e949ee1708
Contents?: true
Size: 856 Bytes
Versions: 3
Compression:
Stored size: 856 Bytes
Contents
Given(/^I have a secure web service$/) do @protocol = 'https' @server = FigNewton.server @port = FigNewton.port @mockservice = MockRestService.new(@server, @port, @protocol) end Given(/^I have "(GET|PUT|POST|DELETE)" service for "([^"]*) with the following headers$/) do |type, path, table| @path = path @mockservice.store_msg(type, path, DEFAULT_MESSAGE, table.rows_hash) end Given(/^I have "(GET|PUT|POST|DELETE)" service for "([^"]*) for user "([^"]*) and password "([^"]*)$/) do |type, path, user, password, table| @path = path @mockservice.store_msg(type, path, DEFAULT_MESSAGE, table.rows_hash, user, password) end When(/^I have the following headers?$/) do |table| @restbaby.set_headers(table.rows_hash) end Given(/^I have basic auth for user "(.*?)" and password "(.*?)"$/) do |user, password| @restbaby.set_auth(user, password) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rest_baby-0.5 | features/step_definitions/header_steps.rb |
rest_baby-0.4 | features/step_definitions/header_steps.rb |
rest_baby-0.3 | features/step_definitions/header_steps.rb |