Sha256: 4f6d6fd37d6689adfabe6cccbfd770e3dd5da3639dbcfeebd7825446d8c3845f
Contents?: true
Size: 1.06 KB
Versions: 4
Compression:
Stored size: 1.06 KB
Contents
# Configure Rails Envinronment ENV['RAILS_ENV'] = 'test' require File.expand_path('../dummy/config/environment.rb', __FILE__) require 'rspec/rails' require 'rspec/autorun' require 'bourne' ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../') # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir[File.join(ENGINE_RAILS_ROOT, 'spec/support/**/*.rb')].each { |f| require f } require 'postgres_ext' require 'database_cleaner' RSpec.configure do |config| config.before(:suite) { ActiveRecord::Base.connection.enable_extension('pg_trgm') } config.before(:suite) do DatabaseCleaner.clean DatabaseCleaner.strategy = :deletion end config.before(:each) do DatabaseCleaner.clean end config.use_transactional_fixtures = false config.treat_symbols_as_metadata_keys_with_true_values = true config.mock_with :mocha config.backtrace_clean_patterns = [ #/\/lib\d*\/ruby\//, #/bin\//, #/gems/, #/spec\/spec_helper\.rb/, /lib\/rspec\/(core|expectations|matchers|mocks)/ ] end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
postgres_ext-2.1.3 | spec/spec_helper.rb |
postgres_ext-2.1.2 | spec/spec_helper.rb |
postgres_ext-2.1.1 | spec/spec_helper.rb |
postgres_ext-2.1.0 | spec/spec_helper.rb |