Sha256: 98111865e841b97b45c8c7ec05f6144d9f8b4fa0c5d8dc2b4d5175d8b9a7b039

Contents?: true

Size: 597 Bytes

Versions: 3

Compression:

Stored size: 597 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
require 'app-config'

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

RSpec.configure do |config|
  
  config.before(:each) do
    # Simulate it being loaded for the first time; empty config.
    # TODO: Can you force reload?
    AppConfig.configure {}
  end
end

def config_file(name)
  File.join(File.dirname(__FILE__), "config", name)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yappconfig-0.3.1 spec/spec_helper.rb
yappconfig-0.3.0 spec/spec_helper.rb
yappconfig-0.2.0 spec/spec_helper.rb