Sha256: 3210ab7aa2df0760516d0eb3f07d936d5ffb0b4a2f3f97f182c9ff761d7f61c3

Contents?: true

Size: 671 Bytes

Versions: 39

Compression:

Stored size: 671 Bytes

Contents

RSpec::Core::DSL.change_global_dsl do
  def describe_command *argv, &block
    describe *argv do
      let(:cert_store) { double(:cert_store) }
        
      before do
        allow(cert_store).to receive(:add_file)
        stub_const 'OpenSSL::SSL::SSLContext::DEFAULT_CERT_STORE', cert_store
      end
      
      let(:cert_store_options) do
        {
          ssl_cert_store: cert_store
        }
      end
      
      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

39 entries across 39 versions & 1 rubygems

Version Path
conjur-cli-6.2.3 lib/conjur/command/rspec/describe_command.rb
conjur-cli-6.2.2 lib/conjur/command/rspec/describe_command.rb
conjur-cli-6.2.1 lib/conjur/command/rspec/describe_command.rb
conjur-cli-6.2.0 lib/conjur/command/rspec/describe_command.rb
conjur-cli-5.6.6 lib/conjur/command/rspec/describe_command.rb
conjur-cli-6.1.0 lib/conjur/command/rspec/describe_command.rb
conjur-cli-6.0.1 lib/conjur/command/rspec/describe_command.rb
conjur-cli-5.6.5 lib/conjur/command/rspec/describe_command.rb
conjur-cli-5.6.4 lib/conjur/command/rspec/describe_command.rb
conjur-cli-5.6.3 lib/conjur/command/rspec/describe_command.rb
conjur-cli-6.0.0 lib/conjur/command/rspec/describe_command.rb
conjur-cli-6.0.0.rc1 lib/conjur/command/rspec/describe_command.rb
conjur-cli-5.5.0 lib/conjur/command/rspec/describe_command.rb
conjur-cli-5.4.0 lib/conjur/command/rspec/describe_command.rb
conjur-cli-5.3.0 lib/conjur/command/rspec/describe_command.rb
conjur-cli-5.2.5 lib/conjur/command/rspec/describe_command.rb
conjur-cli-5.2.4 lib/conjur/command/rspec/describe_command.rb
conjur-cli-5.2.3 lib/conjur/command/rspec/describe_command.rb
conjur-cli-5.2.1 lib/conjur/command/rspec/describe_command.rb
conjur-cli-5.2.0 lib/conjur/command/rspec/describe_command.rb