Sha256: 2d87369a23a7654bb1cc91d88d7f7c508068f8775bc7aea84abe43827e764844

Contents?: true

Size: 500 Bytes

Versions: 3

Compression:

Stored size: 500 Bytes

Contents

require_relative "../../lib/cute_print"

Before do
  CutePrint.configure { |c| c.reset }
end

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-0.3.0 features/support/step_definitions.rb
cute_print-0.2.0 features/support/step_definitions.rb
cute_print-0.1.0 features/support/step_definitions.rb