spec/buildbox/buildbox/command_spec.rb in buildbox-0.2 vs spec/buildbox/buildbox/command_spec.rb in buildbox-0.2.1

- old
+ new

@@ -2,9 +2,15 @@ require "spec_helper" describe Buildbox::Command do describe "#run" do + it "is run within a tty" do + result = Buildbox::Command.run(%{ruby -e "puts STDOUT.tty?"}) + + result.output.should == "true" + end + it "successfully runs and returns the output from a simple comment" do result = Buildbox::Command.run('echo hello world') result.exit_status.should == 0 result.output.should == "hello world"