Sha256: 02a9c99dd2a034090f803bc782a127e7180b4879eff6e77c6ed51cf0f2155ccc
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
ENV['RAILS_ENV'] ||= 'test' require 'factory_girl' require 'database_cleaner' require 'engine_cart' require 'coveralls' Coveralls.wear!('rails') EngineCart.load_application! require 'rspec/rails' require 'capybara/rspec' require 'capybara/poltergeist' Capybara.javascript_driver = :poltergeist Capybara.register_driver :poltergeist do |app| options = {} options[:timeout] = 120 if RUBY_PLATFORM == 'java' Capybara::Poltergeist::Driver.new(app, options) end if ENV['COVERAGE'] || ENV['CI'] require 'simplecov' SimpleCov.formatter = Coveralls::SimpleCov::Formatter SimpleCov.start do add_filter '/spec/' end end require 'geoblacklight' Dir['./spec/support/**/*.rb'].sort.each { |f| require f } FactoryGirl.definition_file_paths = [File.expand_path('../factories', __FILE__)] FactoryGirl.find_definitions RSpec.configure do |config| config.use_transactional_fixtures = false config.before :each do if Capybara.current_driver == :rack_test DatabaseCleaner.strategy = :transaction else DatabaseCleaner.strategy = :truncation end DatabaseCleaner.start end config.after do DatabaseCleaner.clean end config.include Devise::TestHelpers, type: :controller end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
geoblacklight-0.12.0 | spec/spec_helper.rb |