spec/unit/command/verify_spec.rb in chef-dk-1.6.11 vs spec/unit/command/verify_spec.rb in chef-dk-2.0.26
- old
+ new
@@ -43,11 +43,10 @@
"chef-client",
"chef-dk",
"chef-provisioning",
"chefspec",
"generated-cookbooks-pass-chefspec",
- "rubocop",
"fauxhai",
"knife-spork",
"kitchen-vagrant",
"package installation",
"openssl",
@@ -104,10 +103,11 @@
end
end
describe "when running verify command" do
let(:stdout_io) { StringIO.new }
+ let(:stderr_io) { StringIO.new }
let(:ruby_path) { File.join(fixtures_path, "eg_omnibus_dir/valid/embedded/bin/ruby") }
def run_unit_test
# Set rubyopt to empty to prevent bundler from infecting the ruby
# subcommands (and loading a bunch of extra gems).
@@ -168,9 +168,10 @@
end
before do
allow(Gem).to receive(:ruby).and_return(ruby_path)
allow(command_instance).to receive(:stdout).and_return(stdout_io)
+ allow(command_instance).to receive(:stderr).and_return(stderr_io)
allow(command_instance).to receive(:components).and_return(components)
end
context "when running smoke tests only" do
describe "with single command with success" do