Sha256: 35f6735a9c0b7a1eaa39feeceb0e4eb3e5d61bbe585cd35cd31eecdb07681cab

Contents?: true

Size: 874 Bytes

Versions: 2

Compression:

Stored size: 874 Bytes

Contents

require 'rubygems'

# Providers
def load_provider_lib(*libs)
  begin
    libs.each {|lib| require lib}
    true
  rescue Gem::LoadError => e
    warn "Could not load #{lib}: #{e}"
    false
  end
end

HAS_AR      = load_provider_lib 'activerecord'
HAS_DM      = load_provider_lib 'dm-core', 'dm-validations', 'dm-aggregates'
HAS_GETTEXT = load_provider_lib 'gettext'
HAS_SEQUEL  = load_provider_lib 'sequel'

require 'merb-core'

Merb::Plugins.config[:merb_global] = {
  :provider => 'mock',
  :localedir => File.join('spec', 'locale')
}

require 'pathname'
require Pathname(__FILE__).dirname.parent.expand_path.to_s + '/lib/merb_global'

Merb.start_environment(:testing => true, :adapter => 'runner', :environment => ENV['MERB_ENV'] || 'test')

require 'spec'

Spec::Runner.configure do |config|
  config.include(Merb::Test::ControllerHelper)
  config.mock_with :mocha
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
emipair-merb_global-0.0.2 spec/spec_helper.rb
emipair-merb_global-0.0.1 spec/spec_helper.rb