Sha256: 91898f3ef75d5daa8adcf4a7cc5b481701facd280fca097f37851070d4df93dd
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'bundler/setup' require 'mocha_standalone' require 'rack/test' require 'tentd' require 'fabrication' require 'tentd/core_ext/hash/slice' require 'girl_friday' require 'tentd/notifications/girl_friday' Dir["#{File.dirname(__FILE__)}/support/*.rb"].each { |f| require f } ENV['RACK_ENV'] ||= 'test' require 'data_mapper' RSpec.configure do |config| config.include Rack::Test::Methods config.include JsonRequest config.mock_with :mocha config.around do |suite| with_constants "TentD::Notifications::NOTIFY_ENTITY_QUEUE" => [], "TentD::Notifications::TRIGGER_QUEUE" => [] do suite.run end end config.before(:suite) do GirlFriday::WorkQueue.immediate! # DataMapper::Logger.new(STDOUT, :debug) DataMapper.setup(:default, ENV['TEST_DATABASE_URL'] || 'postgres://localhost/tent_server_test') DataMapper.auto_migrate! TentD::Model::User.current = TentD::Model::User.first_or_create end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tentd-0.0.1 | spec/spec_helper.rb |