Sha256: e36e24b7fe41db5f13edb3cb3c1a069ede8a7ec669cd54b79ba4e5fe68bddf80

Contents?: true

Size: 418 Bytes

Versions: 3

Compression:

Stored size: 418 Bytes

Contents

require 'ostruct'

Given(/^some array data$/) do
  @data = [OpenStruct.new(:text => 'First Data', :barcode => '111111'),OpenStruct.new(:text => 'Last Data', :barcode => '999999')]
end

Given(/^a DSL with:$/) do |string|
  @dsl = string
end

Given(/^code:$/) do |string|
  @code = string
end
When(/^I execute the DSL$/) do
  @dsl_document = eval @dsl
end

When(/^I execute the code$/) do
  @document = eval @code
end


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zebra_printer-0.9.0 features/step_definitions/dsl_steps.rb
zebra_printer-0.8.0 features/step_definitions/dsl_steps.rb
zebra_printer-0.1.1 features/step_definitions/dsl_steps.rb