Sha256: 2b7deeaf8326b78b97b3dd077c8f11d688982a61e34699d4fc7af8094d663566

Contents?: true

Size: 334 Bytes

Versions: 3

Compression:

Stored size: 334 Bytes

Contents

module RSpec::Core::DSL
  def describe_command *argv, &block
    describe *argv do
      let(:invoke) do
        Conjur::CLI.error_device = $stderr
        # TODO: allow proper handling of description like "audit:send 'hello world'"
        Conjur::CLI.run argv.first.split(' ')
      end
      instance_eval &block
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
conjur-cli-4.14.0 lib/conjur/command/rspec/describe_command.rb
conjur-cli-4.13.1 lib/conjur/command/rspec/describe_command.rb
conjur-cli-4.12.0 lib/conjur/command/rspec/describe_command.rb