Sha256: da597ca59b4701ec277b560d871684fbbdf82d4ddb9a62c2a0d1a83cf47b027e

Contents?: true

Size: 348 Bytes

Versions: 7

Compression:

Stored size: 348 Bytes

Contents

RSpec::Core::DSL.change_global_dsl do
  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

7 entries across 7 versions & 1 rubygems

Version Path
conjur-cli-4.20.1 lib/conjur/command/rspec/describe_command.rb
conjur-cli-4.19.0 lib/conjur/command/rspec/describe_command.rb
conjur-cli-4.18.6 lib/conjur/command/rspec/describe_command.rb
conjur-cli-4.18.0 lib/conjur/command/rspec/describe_command.rb
conjur-cli-4.17.0 lib/conjur/command/rspec/describe_command.rb
conjur-cli-4.16.0 lib/conjur/command/rspec/describe_command.rb
conjur-cli-4.15.0 lib/conjur/command/rspec/describe_command.rb