Module: EacRubyUtils::Rspec

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

Defined Under Namespace

Modules: Setup Classes: SetupManager, StubSpeaker

Class Method Summary collapse

Class Method Details

.default_setupEacRubyUtils::Rspec::SetupManager



9
10
11
12
# File 'lib/eac_ruby_utils/rspec/default_setup.rb', line 9

def default_setup
  @default_setup ||
    raise("Default instance was not set. Use #{self.class.name}.default_setup_create")
end

.default_setup_create(app_root_path, rspec_config = nil) ⇒ EacRubyUtils::Rspec::SetupManager



15
16
17
# File 'lib/eac_ruby_utils/rspec/default_setup.rb', line 15

def default_setup_create(app_root_path, rspec_config = nil)
  @default_setup = ::EacRubyUtils::Rspec::SetupManager.create(app_root_path, rspec_config)
end