Sha256: a2c134bd2e331c9a964fdcf1a3eae26b7f33e189257738f40f76f4e039d5aece

Contents?: true

Size: 610 Bytes

Versions: 2

Compression:

Stored size: 610 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

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

2 entries across 2 versions & 1 rubygems

Version Path
rest_baby-0.2 features/step_definitions/header_steps.rb
rest_baby-0.1 features/step_definitions/header_steps.rb