Sha256: 95521672dd81e13e7617969515c38d833fa023fdd0fbfa4a72b671159006db44
Contents?: true
Size: 501 Bytes
Versions: 9
Compression:
Stored size: 501 Bytes
Contents
When /^I execute cli "(.*)"$/ do |command| old_stdout = $stdout $stdout = Tempfile.new("") TechcorCli.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
9 entries across 9 versions & 1 rubygems