Module: RSpec::Core::DSL

Defined in:
lib/conjur/command/rspec/describe_command.rb

Instance Method Summary collapse

Instance Method Details

#describe_command(*argv, &block) ⇒ Object



2
3
4
5
6
7
8
9
10
# File 'lib/conjur/command/rspec/describe_command.rb', line 2

def describe_command *argv, &block
  describe *argv do
    let(:invoke) do
      Conjur::CLI.error_device = $stderr
      Conjur::CLI.run argv.first.split(' ')
    end
    instance_eval &block
  end
end