Sha256: 8b7a687a2c62167d2c1d51a522fe64cead5c2e38dcd199d7d1d4c6d6e8db1442

Contents?: true

Size: 907 Bytes

Versions: 4

Compression:

Stored size: 907 Bytes

Contents

require 'rubygems'
require 'bundler/setup'

# Providers
def load_provider_lib(*libs)
  begin
    libs.each {|lib| require lib}
    true
  rescue Gem::LoadError => e
    warn "Could not load #{libs.inspect}: #{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

4 entries across 4 versions & 1 rubygems

Version Path
emipair-merb_global-0.0.12 spec/spec_helper.rb
emipair-merb_global-0.0.11 spec/spec_helper.rb
emipair-merb_global-0.0.10 spec/spec_helper.rb
emipair-merb_global-0.0.9 spec/spec_helper.rb