Sha256: 5ab9783f238b1e82d4b37a10f195217c7dd8f93332e054b5314cb9727dcba1ac

Contents?: true

Size: 1016 Bytes

Versions: 4

Compression:

Stored size: 1016 Bytes

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'
#require 'debugger' unless ENV['CI'] || (RUBY_PLATFORM =~ /java/)

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'

RSpec.configure do |config|
  config.before(:suite) { ActiveRecord::Base.connection.add_extension('pg_trgm') if ActiveRecord::Base.connection.supports_extensions?}
  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-1.0.0 spec/spec_helper.rb
postgres_ext-0.4.0 spec/spec_helper.rb
postgres_ext-0.3.1 spec/spec_helper.rb
postgres_ext-0.3.0 spec/spec_helper.rb