Skip to content
This repository has been archived by the owner on Nov 13, 2018. It is now read-only.

Commit

Permalink
Simpler spec_helper, using Bundler.
Browse files Browse the repository at this point in the history
  • Loading branch information
pat committed Jun 5, 2013
1 parent b71dd64 commit 34a270c
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions spec/spec_helper.rb
@@ -1,13 +1,19 @@
require 'thinking_sphinx'
require 'thinking_sphinx/deltas/resque_delta'
require 'rubygems'
require 'bundler'

require 'mock_redis'
require 'fakefs/spec_helpers'
Bundler.require :default, :development

RSpec.configure do |c|
c.filter_run :focus => true
c.run_all_when_everything_filtered = true
c.treat_symbols_as_metadata_keys_with_true_values = true
require 'thinking_sphinx/railtie'

Combustion.initialize! :active_record

root = File.expand_path File.dirname(__FILE__)
Dir["#{root}/support/**/*.rb"].each { |file| require file }

RSpec.configure do |config|
# enable filtering for examples
config.filter_run :wip => nil
config.run_all_when_everything_filtered = true
end

SPEC_BIN_PATH = File.expand_path(File.join(File.dirname(__FILE__), 'bin'))

0 comments on commit 34a270c

Please sign in to comment.