Sha256: 9b5ed18be739de5d6aa539f77471eefcf9bed541ef2e507cee213d492acb633a
Contents?: true
Size: 1.31 KB
Versions: 5
Compression:
Stored size: 1.31 KB
Contents
Encoding.default_external = Encoding::UTF_8 require 'rubygems' require 'bundler/setup' # Configure simplecov gem (must be here at top of file) #require 'simplecov' #SimpleCov.start do # add_filter 'spec' # Don't include RSpec stuff #end $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) Bundler.setup #Bundler.require(:default, :development, :test) require 'praxis-mapper' require 'active_support/core_ext/kernel' require_relative 'support/spec_models' require_relative 'support/spec_resources' require_relative 'spec_fixtures' require 'praxis-mapper/support' require 'randexp' require 'pry' RSpec.configure do |config| config.backtrace_exclusion_patterns = [ /\/lib\d*\/ruby\//, /bin\//, /gems/, /spec\/spec_helper\.rb/, /lib\/rspec\/(core|expectations|matchers|mocks)/, /org\/jruby\/.*.java/ ] config.before(:suite) do Praxis::Mapper.finalize! Praxis::Mapper::ConnectionManager.repository(:default, query: Praxis::Mapper::Support::MemoryQuery) do Praxis::Mapper::Support::MemoryRepository.new end Praxis::Mapper::ConnectionManager.repository(:sql) do Sequel.mock end Praxis::Mapper::IdentityMap.setup! end config.after(:each) do Praxis::Mapper::IdentityMap.current.clear! end end
Version data entries
5 entries across 5 versions & 1 rubygems