Permalink
Browse files

Added Redirect standard error to standard output when executing syste…

…m commands
  • Loading branch information...
1 parent 5c66ca5 commit d7d8663c96229c68f21f9d47727289d0a4893f09 Roger Leite committed Apr 19, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −1 features/env.rb
  2. +0 −1 features/export_action.feature
View
3 features/env.rb
@@ -33,7 +33,8 @@ def create_fake_environment
#execute system command, redirecting output
def execute(command)
- system("#{command} > #{OUTPUT}")
+ #2>&1 Redirect standard error to standard output
+ system("#{command} > #{OUTPUT} 2>&1")
end
#read output
View
1 features/export_action.feature
@@ -12,7 +12,6 @@ Feature: Export installed gems
And I should see "gems/rubygems_snapshot-0.2.0.gem"
And I should see "gems.yml"
- @wip
Scenario: using export with tar format and no cache gem
Given I run "rm tmp/fake_gems/cache/rake*"
When I run "gem snapshot export tmp/test.tar"

0 comments on commit d7d8663

Please sign in to comment.