Sha256: 9cd9100cd5cbaa260a415b27a7f411b643f88f8a4259c8276cab24fdeec37d50
Contents?: true
Size: 496 Bytes
Versions: 1
Compression:
Stored size: 496 Bytes
Contents
When /^I execute cli "(.*)"$/ do |command| old_stdout = $stdout $stdout = Tempfile.new("") TcCli.exec Shellwords.shellwords command $stdout.rewind @console = $stdout.readlines.join $stdout = old_stdout end Then /^the cli output should contain "(.*)"$/ do |text| @console.should include text end Then /^the cli output should match \/(.*)\/$/ do |text| @console.should =~ Regexp.new(text) end Then /^the cli output should contain:$/ do |text| @console.should include text end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
techcor-0.0.1 | features/step_definitions/add_project.rb |