Sha256: fc6cfb3b59ba4b032f338de560e55df620de6e8cd1a829a3c89016b9f8b3ad80

Contents?: true

Size: 1.05 KB

Versions: 11

Compression:

Stored size: 1.05 KB

Contents

# This file is generated by FWToolkit and is covered by the license at
# 
require 'fwtoolkit/test/model_helper.rb'

Given /^the server responds with(?: "([^\"]*)" for)? path "([^\"]*)" 0 ([^"]*)$/ do |template_file_name, path, variable_name|
  eval("@#{variable_name} = []")
  content = fwt_template_response(template_file_name != nil ? template_file_name : variable_name)
  queue_mimic_get_response(path, content)
end

Given /^the server responds with "([^\"]*)" for path "([^\"]*)" with #{capture_model}(?: with #{capture_fields})?$/ do |template_file_name, path, capture_model, options|
  content = fwt_template_response(template_file_name, [capture_model], options)
  queue_mimic_get_response(path, content)
end

Given /^the server responds with "([^\"]*)" for path "([^\"]*)" with #{capture_model} and #{capture_model}(?: with #{capture_fields})?$/ do |template_file_name, path, capture_model_1, capture_model_2, options|
  content = fwt_template_response(template_file_name, [capture_model_1, capture_model_2], options)
  queue_mimic_get_response(path, content)
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fwtoolkit-0.3.4 lib/fwtoolkit/test/model_steps.rb
fwtoolkit-0.3.3 lib/fwtoolkit/test/model_steps.rb
fwtoolkit-0.3.2 lib/fwtoolkit/test/model_steps.rb
fwtoolkit-0.3.1 lib/fwtoolkit/test/model_steps.rb
fwtoolkit-0.3.0 lib/fwtoolkit/test/model_steps.rb
fwtoolkit-0.2.1 lib/fwtoolkit/test/model_steps.rb
fwtoolkit-0.2.0 lib/fwtoolkit/test/model_steps.rb
fwtoolkit-0.1.2 lib/fwtoolkit/test/model_steps.rb
fwtoolkit-0.1.1 lib/fwtoolkit/test/model_steps.rb
fwtoolkit-0.1.0 lib/fwtoolkit/test/model_steps.rb
fwtoolkit-0.0.6 lib/fwtoolkit/test/model_steps.rb