Sha256: 81c41ab79e091cb9b9f37eaa5d8369404dd60100915d17525199c5cfa139f6e8

Contents?: true

Size: 284 Bytes

Versions: 1

Compression:

Stored size: 284 Bytes

Contents

step "I have the following code:" do |code|
  @code = code
end

step "Ruby it" do
  stdout = StringIO.new
  $stdout = stdout
  begin
    eval @code
  ensure
    $stdout = STDOUT
  end
  @output = stdout.string.chop
end

step "I should see:" do |output|
  @output.should == output
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tapp-1.3.1 spec/steps/tapp_steps.rb