Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make all specs pass on Mac OSX

  • Loading branch information...
commit 56d2551c4f13617740048951f959890b3f3fa3ee 1 parent eca8a8a
Jesse Zhang and Matt Royal authored
Showing with 7 additions and 6 deletions.
  1. +1 −0  spec/unit/process_utils_spec.rb
  2. +6 −6 spec/unit/subprocess_spec.rb
View
1  spec/unit/process_utils_spec.rb
@@ -1,4 +1,5 @@
require 'spec_helper'
+require 'open3'
describe VCAP::ProcessUtils do
describe '.get_stats' do
View
12 spec/unit/subprocess_spec.rb
@@ -7,14 +7,14 @@
describe '#run' do
it 'should capture both stdout and stderr' do
- stdout, stderr, status = @subprocess.run('echo -n foo >&2')
- stdout.should == ''
- stderr.should == 'foo'
+ stdout, stderr, status = @subprocess.run('echo foo >&2')
+ stdout.should == ""
+ stderr.should == "foo\n"
status.should == 0
- stdout, stderr, status = @subprocess.run('echo -n foo')
- stdout.should == 'foo'
- stderr.should == ''
+ stdout, stderr, status = @subprocess.run('echo foo')
+ stdout.should == "foo\n"
+ stderr.should == ""
status.should == 0
end
Please sign in to comment.
Something went wrong with that request. Please try again.