Skip to content

Commit

Permalink
Update rspec to use latest conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Nov 8, 2015
1 parent 90b3a53 commit db197e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
2 changes: 0 additions & 2 deletions .rspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
--color
--format progress
--require ./spec/spec_helper.rb
--tag ~wip
13 changes: 4 additions & 9 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
#require 'rubygems'
#require 'bundler/setup'

ENV["RAILS_ENV"] ||= "test"

require 'rsolr'

require 'engine_cart'
EngineCart.load_application!

require 'coveralls'
Coveralls.wear!

require 'blacklight-hierarchy'
require 'rsolr'

require 'capybara/rspec'
require 'rspec/rails'

# Setup blacklight environment
Blacklight.solr_config = { :url => 'http://127.0.0.1:8983/solr' }
require 'capybara/rails'

RSpec.configure do |config|
config.infer_spec_type_from_file_location!
Expand Down
2 changes: 0 additions & 2 deletions spec/test_app_templates/lib/generators/test_app_generator.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
require 'rails/generators'

class TestAppGenerator < Rails::Generators::Base
source_root File.expand_path("../../../../test_app_templates", __FILE__)

def add_gems
gem 'blacklight'
Bundler.with_clean_env do
Expand Down

0 comments on commit db197e4

Please sign in to comment.