Sha256: 061857b97e5d9508a331c5f4b72081c3c715f72a805dce3842f75aadb4a97b33
Contents?: true
Size: 1.24 KB
Versions: 4
Compression:
Stored size: 1.24 KB
Contents
ENV["RAILS_ENV"] = "test" require_relative "./simplecov_init" require 'minitest/autorun' require 'rails' require 'rails/test_help' require 'hquery-patient-api' require 'diffy' APP_CONFIG = {'nlm'=> {'ticket_url'=> 'https://vsac.nlm.nih.gov/vsac/ws/Ticket', 'api_url' => 'https://vsac.nlm.nih.gov/vsac/svs/RetrieveMultipleValueSets', 'profiles_url' => 'https://vsac.nlm.nih.gov/vsac/profiles', 'profile' => 'MU2 Update 2016-04-01'}} PROJECT_ROOT = File.expand_path("../../", __FILE__) require File.join(PROJECT_ROOT, 'lib', 'bonnie_bundler') BonnieBundler.logger = Log4r::Logger.new("Bonnie Bundler") BonnieBundler.logger.outputters = Log4r::Outputter.stdout def dump_db Mongoid.default_client.collections.each do |c| c.drop() end FileUtils.rm_r 'db' if File.exists? 'db' end Mongoid.logger.level = Logger::INFO Mongo::Logger.logger.level = Logger::INFO dump_db # Supplied from bonnie, needed for expected_values testing class Record field :type, type: String field :measure_ids, type: Array field :source_data_criteria, type: Array field :expected_values, type: Array belongs_to :user scope :by_user, ->(user) { where({'user_id'=>user.id}) } end class User include Mongoid::Document include Mongoid::Timestamps end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bonnie_bundler-2.0.3 | test/test_helper.rb |
bonnie_bundler-2.0.2 | test/test_helper.rb |
bonnie_bundler-2.0.1 | test/test_helper.rb |
bonnie_bundler-2.0.0 | test/test_helper.rb |