Sha256: 6d3848f1e85c0865cccab8b089a7552fb3c9463c5df4e13117341d429c4f6f39

Contents?: true

Size: 704 Bytes

Versions: 12

Compression:

Stored size: 704 Bytes

Contents

require 'adhearsion/component_manager/component_tester'
begin
  require 'spec'
rescue LoadError
  abort 'You do not have the "rspec" gem installed! You must install it to continue.\n\nsudo gem install rspec\n\n'
end

begin
  require 'rr'
rescue LoadError
  abort 'You do not have the "rr" gem installed! You must install it to continue.\n\nsudo gem install rr\n\n'  
end

module ComponentConfigurationSpecHelper
  def mock_component_config_with(new_config)
    Object.send(:remove_const, :COMPONENTS) rescue nil
    Object.send(:const_set, :COMPONENTS, OpenStruct.new(new_config))
  end
end

Spec::Runner.configure do |config|
  config.mock_with :rr
  config.include ComponentConfigurationSpecHelper
end

Version data entries

12 entries across 12 versions & 6 rubygems

Version Path
eric-adhearsion-0.8.0 lib/adhearsion/component_manager/spec_framework.rb
jicksta-adhearsion-0.7.999 lib/adhearsion/component_manager/spec_framework.rb
jicksta-adhearsion-0.8.0 lib/adhearsion/component_manager/spec_framework.rb
jicksta-adhearsion-0.8.2 lib/adhearsion/component_manager/spec_framework.rb
jicksta-adhearsion-0.8.3 lib/adhearsion/component_manager/spec_framework.rb
kenwiesner-adhearsioncw-0.8.3 lib/adhearsion/component_manager/spec_framework.rb
mtrudel-adhearsion-0.8.3 lib/adhearsion/component_manager/spec_framework.rb
sevenscale-adhearsion-0.8.0 lib/adhearsion/component_manager/spec_framework.rb
adhearsion-0.8.3 lib/adhearsion/component_manager/spec_framework.rb
adhearsion-0.8.0 lib/adhearsion/component_manager/spec_framework.rb
adhearsion-0.8.2 lib/adhearsion/component_manager/spec_framework.rb
adhearsion-0.8.1 lib/adhearsion/component_manager/spec_framework.rb