Module: Rspec::Bash

Defined in:
lib/rspec/bash/stubbed_env.rb,
lib/rspec/bash/command/call_log.rb,
lib/rspec/bash/server/stub_server.rb,
lib/rspec/bash/wrapper/bash_wrapper.rb,
lib/rspec/bash/wrapper/stub_function.rb,
lib/rspec/bash/command/stubbed_command.rb,
lib/rspec/bash/command/call_log_manager.rb,
lib/rspec/bash/wrapper/bash_stub_script.rb,
lib/rspec/bash/wrapper/ruby_stub_script.rb,
lib/rspec/bash/command/call_configuration.rb,
lib/rspec/bash/server/bash_stub_marshaller.rb,
lib/rspec/bash/server/ruby_stub_marshaller.rb,
lib/rspec/bash/command/call_configuration_manager.rb,
lib/rspec/bash/util/call_log_argument_list_matcher.rb,
lib/rspec/bash/util/call_conf_argument_list_matcher.rb

Defined Under Namespace

Modules: Util Classes: BashStubMarshaller, BashStubScript, BashWrapper, CallConfiguration, CallConfigurationManager, CallLog, CallLogManager, RubyStubMarshaller, RubyStubScript, StubFunction, StubServer, StubbedCommand, StubbedEnv

Instance Method Summary collapse

Instance Method Details

#create_stubbed_env(stub_type = ENV.fetch('RSPEC_BASH_STUB_TYPE', StubbedEnv::BASH_STUB).to_sym) ⇒ Object



8
9
10
11
12
# File 'lib/rspec/bash/stubbed_env.rb', line 8

def create_stubbed_env(stub_type =
  ENV.fetch('RSPEC_BASH_STUB_TYPE', StubbedEnv::BASH_STUB).to_sym)

  StubbedEnv.new(stub_type)
end