Sha256: 963a4868b211e75a732b05dacc88252c6f6fd1a8b5b9277252eb966f06ec1bba

Contents?: true

Size: 723 Bytes

Versions: 5

Compression:

Stored size: 723 Bytes

Contents

require 'cucumber'
require 'rspec/expectations'
require 'fileutils'
require 'active_record'
require 'mock_redis'
require 'ruby-debug'

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

Resque.redis = MockRedis.new
Before do
  Resque.redis.flushall
end

require 'database_cleaner'
require 'database_cleaner/cucumber'
DatabaseCleaner.strategy = :truncation

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ryansch-ts-resque-delta-1.1.5.4 features/support/env.rb
ryansch-ts-resque-delta-1.1.5.4.dev features/support/env.rb
ryansch-ts-resque-delta-1.1.5.3 features/support/env.rb
ryansch-ts-resque-delta-1.1.5.2 features/support/env.rb
ryansch-ts-resque-delta-1.1.5.1 features/support/env.rb