summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorSerdar Sutay <serdar@opscode.com>2014-10-10 15:58:44 -0700
committerSerdar Sutay <serdar@opscode.com>2014-10-10 15:58:44 -0700
commit0fb570467abd6bc19871fa0373d0201c1432ecc5 (patch)
tree2defcb4a89733a2d846993ac30f52f9a6d60ff3c /spec
parentb44a86aab6a4c7e4f8474cebbc0457b673529e67 (diff)
parent55b380d1a5b2356cc84a4618249d6581f6e248ba (diff)
downloadchef-0fb570467abd6bc19871fa0373d0201c1432ecc5.tar.gz
Merge pull request #2170 from vaxvms/knife-status-json-output
Add JSON output to knife status command
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/knife/status_spec.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/unit/knife/status_spec.rb b/spec/unit/knife/status_spec.rb
index 6d8d9d5b25..bb43dd25e5 100644
--- a/spec/unit/knife/status_spec.rb
+++ b/spec/unit/knife/status_spec.rb
@@ -17,7 +17,6 @@
#
require 'spec_helper'
-require 'highline'
describe Chef::Knife::Status do
before(:each) do
@@ -30,7 +29,7 @@ describe Chef::Knife::Status do
Chef::Search::Query.stub(:new).and_return(query)
@knife = Chef::Knife::Status.new
@stdout = StringIO.new
- @knife.stub(:highline).and_return(HighLine.new(StringIO.new, @stdout))
+ @knife.ui.stub(:stdout).and_return(@stdout)
end
describe "run" do