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

Version Path
rescpos-0.0.9 features/step_definitions/report_steps.rb
rescpos-0.0.8 features/step_definitions/report_steps.rb
rescpos-0.0.7 features/step_definitions/report_steps.rb
rescpos-0.0.6 features/step_definitions/report_steps.rb
rescpos-0.0.5 features/step_definitions/report_steps.rb
rescpos-0.0.3 features/step_definitions/report_steps.rb
rescpos-0.0.2 features/step_definitions/report_steps.rb