spec/spec_helper.rb in conjur-cli-2.1.3 vs spec/spec_helper.rb in conjur-cli-2.1.4
- old
+ new
@@ -3,12 +3,15 @@
require "simplecov"
SimpleCov.start
module RSpec::Core::DSL
- def describe_command name, *a, &block
- describe name, *a do
- let(:invoke) { Conjur::Cli.run [name] }
+ def describe_command *argv, &block
+ describe *argv do
+ let(:invoke) do
+ Conjur::CLI.error_device = $stderr
+ Conjur::CLI.run argv
+ end
instance_eval &block
end
end
end