Sha256: 4c64a8403fef6b75c245cb05fd55367d3347278acc5bdb9793dced028720a5d6
Contents?: true
Size: 546 Bytes
Versions: 13
Compression:
Stored size: 546 Bytes
Contents
require 'adhearsion/component_manager/component_tester' begin require 'rspec' 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 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 RSpec.configure do |config| config.mock_with :rspec config.include ComponentConfigurationSpecHelper end
Version data entries
13 entries across 13 versions & 2 rubygems