Sha256: d0eac4e8bf47bfc93db2c3c8e4340a12e612c69325aa42b6a954123a974cb220
Contents?: true
Size: 893 Bytes
Versions: 6
Compression:
Stored size: 893 Bytes
Contents
require 'rubygems' require 'cucumber' require 'spec/expectations' require 'fileutils' require 'active_record' PROJECT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..', '..')) $:.unshift(File.join(PROJECT_ROOT, 'lib')) $:.unshift(File.dirname(__FILE__)) require 'cucumber/thinking_sphinx/internal_world' Time.zone_default = Time.__send__(:get_zone, 'Melbourne') ActiveRecord::Base.time_zone_aware_attributes = true ActiveRecord::Base.default_timezone = :utc world = Cucumber::ThinkingSphinx::InternalWorld.new world.configure_database require 'thinking_sphinx' require 'thinking_sphinx/deltas/resque_delta' world.setup require 'redis_test_setup' RedisTestSetup.start_redis!(PROJECT_ROOT, :cucumber) Resque.redis = '127.0.0.1:6398' Before do Resque.redis.flushall end require 'database_cleaner' require 'database_cleaner/cucumber' DatabaseCleaner.strategy = :truncation
Version data entries
6 entries across 6 versions & 1 rubygems