Sha256: c5e7863183ed079f2a521af34fb27f689616fa3d7660668eb7ff2c10bbbdb929

Contents?: true

Size: 406 Bytes

Versions: 3

Compression:

Stored size: 406 Bytes

Contents

Given(/^a file with:$/) do |contents|
  @example = Example.new(contents)
  @example.run
end

Given(/^a file named "(.*?)" with:$/) do |filename, contents|
  @example = Example.new(contents, :filename => filename)
  @example.run
end

Then(/^stderr should be$/) do |expected|
  expect(@example.stderr).to eq expected
end

Then(/^stdout should be$/) do |expected|
  expect(@example.stdout).to eq expected
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cute_print-1.0.1 features/support/step_definitions.rb
cute_print-1.0.0 features/support/step_definitions.rb
cute_print-0.4.0 features/support/step_definitions.rb