Sha256: 3a0f82d71de2b9b3acf67e386afd9cee6af8de970af97ed3147a2a862b44d78e
Contents?: true
Size: 409 Bytes
Versions: 2
Compression:
Stored size: 409 Bytes
Contents
# Mocks the anvil config and folder for the specs so that it uses a # sandbox instead of the user's one module ConfigMock def self.base_path File.expand_path('../dot_anvil', File.dirname(__FILE__)) end def self.config_file File.expand_path('../fixtures/config.rb', File.dirname(__FILE__)) end end Anvil::Config::ClassMethods.module_eval do def base_path ConfigMock.base_path end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
anvil-core-0.6.0 | spec/support/shared/config_mock.rb |
anvil-core-0.5.0 | spec/support/shared/config_mock.rb |