# 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