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

Commit

Permalink
Install sunspot_test gem to handle Solr in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Koronen committed Feb 9, 2015
1 parent 943a09b commit 5f58f1c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
before_script:
- ./script/bootstrap
- bundle exec rake sunspot:solr:start
branches:
only:
- master
Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@ end
group :test do
gem 'database_cleaner'
gem 'machinist', '>= 2.0.0.beta2'
gem 'sunspot_test'
end
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ GEM
sunspot (= 1.3.1)
sunspot_solr (1.3.1)
escape (~> 0.0.4)
sunspot_test (0.4.0)
sunspot_rails (>= 1.2.1)
systemu (2.4.2)
thor (0.14.6)
tilt (1.4.1)
Expand Down Expand Up @@ -269,4 +271,5 @@ DEPENDENCIES
simple_form
sunspot_rails
sunspot_solr
sunspot_test
unicorn
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('../../config/environment', __FILE__)
require 'rspec/rails'
require "sunspot_test/rspec"

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Expand Down

0 comments on commit 5f58f1c

Please sign in to comment.