Module: EacRubyUtils::Rspec::Setup

Defined in:
lib/eac_ruby_utils/rspec/setup.rb,
lib/eac_ruby_utils/rspec/setup/conditionals.rb,
lib/eac_ruby_utils/rspec/setup/setup_manager.rb

Defined Under Namespace

Modules: Conditionals, SetupManager

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(obj) ⇒ Object



12
13
14
15
16
17
# File 'lib/eac_ruby_utils/rspec/setup.rb', line 12

def self.extended(obj)
  obj.extend(::EacRubyUtils::Rspec::Setup::Conditionals)
  obj.rspec_config.add_setting :setup_manager
  obj.rspec_config.setup_manager = obj
  obj.rspec_config.include(::EacRubyUtils::Rspec::Setup::SetupManager)
end

Instance Method Details

#stub_eac_speakerself

Returns:

  • (self)


20
21
22
23
24
# File 'lib/eac_ruby_utils/rspec/setup.rb', line 20

def stub_eac_speaker
  ::EacRubyUtils::Speaker.context.push(::EacRubyUtils::Rspec::StubSpeaker.new)

  self
end