Sha256: 3aa4f1a8d80fef055ee38248fee3ef4274da40e44e61a0dbb39324de2b84301d
Contents?: true
Size: 1.15 KB
Versions: 3
Compression:
Stored size: 1.15 KB
Contents
require 'simplecov' SimpleCov.start 'rails' ENV['RAILS_ENV'] ||= 'test' TABLE_NAME_PREFIX = ENV['table_name_prefix'] || nil TABLE_NAME_SUFFIX = ENV['table_name_suffix'] || nil $LOAD_PATH.unshift File.dirname(__FILE__) require 'capybara/rspec' require 'dummy/config/environment' require 'rspec/rails' require 'generator_spec/test_case' require 'timecop' require 'database_cleaner' # Load JRuby SQLite3 if in that platform begin require 'jdbc/sqlite3' Jdbc::SQLite3.load_driver rescue LoadError end require 'support/orm/active_record' ENGINE_RAILS_ROOT = File.join(File.dirname(__FILE__), '../') Dir["#{File.dirname(__FILE__)}/support/{dependencies,helpers,shared}/*.rb"].each { |f| require f } # Remove after dropping support of Rails 4.2 require "#{File.dirname(__FILE__)}/support/http_method_shim.rb" RSpec.configure do |config| config.infer_spec_type_from_file_location! config.mock_with :rspec config.infer_base_class_for_anonymous_controllers = false config.include RSpec::Rails::RequestExampleGroup, type: :request config.before do DatabaseCleaner.start end config.after do DatabaseCleaner.clean end config.order = 'random' end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
capcoauth-0.6.0 | spec/spec_helper_integration.rb |
capcoauth-0.5.1 | spec/spec_helper_integration.rb |
capcoauth-0.5.0 | spec/spec_helper_integration.rb |