Sha256: 3c443dbdd6050df3a6d76d362e4ab67711ccae75a97ea0611643dc23894caa64

Contents?: true

Size: 763 Bytes

Versions: 7

Compression:

Stored size: 763 Bytes

Contents

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'

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

7 entries across 7 versions & 1 rubygems

Version Path
ts-resque-delta-1.1.5 features/support/env.rb
ts-resque-delta-1.1.4 features/support/env.rb
ts-resque-delta-1.1.3 features/support/env.rb
ts-resque-delta-1.1.2 features/support/env.rb
ts-resque-delta-1.1.1 features/support/env.rb
ts-resque-delta-1.1.0 features/support/env.rb
ts-resque-delta-1.0.0 features/support/env.rb