Sha256: b61283dd2848a84f11f04da9bad7d16d13d8101cffd6e688f5653c01f52228eb
Contents?: true
Size: 527 Bytes
Versions: 7
Compression:
Stored size: 527 Bytes
Contents
Given /^a ESC\/POS template:$/ do |string| @str_template = string end Given /^a titled report:$/ do |string| eval string end When /^I render the titled report with the given template$/ do @output = @report.render(:template => @str_template) end Then /^I will see "([^"]*)"$/ do |title| @output.should be_include(title) end Given /^"([^"]*)" is a template directory$/ do |path| Rescpos.configure do |config| config.template_path = path end end When /^I render the report$/ do @output = @report.render end
Version data entries
7 entries across 7 versions & 1 rubygems