spec/spec_helper.rb in postgres_ext-0.0.10 vs spec/spec_helper.rb in postgres_ext-0.1.0

- old
+ new

@@ -10,12 +10,13 @@ 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') } + 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\//,