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

Version Path
techcor-0.0.10 features/step_definitions/add_project.rb
techcor-0.0.9 features/step_definitions/add_project.rb
techcor-0.0.8 features/step_definitions/add_project.rb
techcor-0.0.7 features/step_definitions/add_project.rb
techcor-0.0.6 features/step_definitions/add_project.rb
techcor-0.0.5 features/step_definitions/add_project.rb
techcor-0.0.4 features/step_definitions/add_project.rb
techcor-0.0.3 features/step_definitions/add_project.rb
techcor-0.0.2 features/step_definitions/add_project.rb