Sha256: 3989a21a00f31cc725a40d4d0b6a93753f40a25c0b326bf4684cf0c608fdf565
Contents?: true
Size: 1.02 KB
Versions: 6
Compression:
Stored size: 1.02 KB
Contents
require 'bundler/setup' require 'pathname' $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'active_list' dummy_path = Pathname.new(__FILE__).dirname.join("dummy") Kernel.system("cd #{dummy_path} && bundle install && bundle exec rake db:drop db:create db:migrate db:seed RAILS_ENV=test") # CURRENT FILE :: test/test_helper.rb # Configure Rails Environment ENV["RAILS_ENV"] = "test" ENV["RAILS_ROOT"] = dummy_path.to_s require dummy_path.join("config", "environment.rb") require "rails/test_help" ActionMailer::Base.delivery_method = :test ActionMailer::Base.perform_deliveries = true ActionMailer::Base.default_url_options[:host] = "test.com" Rails.backtrace_cleaner.remove_silencers! # Run any available migration # ActiveRecord::Migrator.migrate(dummy_path.join("db", "migrate")) # Load support files # Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } # TODO: Adds integration test # TODO: Adds test on list with double join on same table
Version data entries
6 entries across 6 versions & 1 rubygems