Sha256: d2500f38a8babff75e00556a2283941be91912334abc32840e9bb3b9f535cd92
Contents?: true
Size: 984 Bytes
Versions: 2
Compression:
Stored size: 984 Bytes
Contents
require 'cucumber' require 'rspec/expectations' require 'fileutils' require 'active_record' require 'mock_redis' 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' ActiveRecord::Base.send(:include, ThinkingSphinx::ActiveRecord) ActiveSupport::Inflector.inflections do |inflect| inflect.plural /^(.*)beta$/i, '\1betas' inflect.singular /^(.*)betas$/i, '\1beta' end world.setup ThinkingSphinx.updates_enabled = true ThinkingSphinx.deltas_enabled = true Resque.redis = MockRedis.new Before do Resque.redis.flushall end require 'database_cleaner' require 'database_cleaner/cucumber' DatabaseCleaner.strategy = :truncation
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ts-resque-delta-1.2.4 | features/support/env.rb |
ts-resque-delta-1.2.3 | features/support/env.rb |