Sha256: 573ffe3096ec68ce348c3e72cc2e0d5c32a8ad1888b9176fb0c0fee83302349b
Contents?: true
Size: 811 Bytes
Versions: 1
Compression:
Stored size: 811 Bytes
Contents
# Configure Rails Environment ENV["RAILS_ENV"] = "test" dummy_dir = File.expand_path(File.join(File.dirname(__FILE__), "dummy")) rails_dir = File.expand_path(File.join(File.dirname(__FILE__), "rails")) rails_dummy_dir = rails_dir + "/dummy" FileUtils.cp_r dummy_dir, rails_dir require rails_dummy_dir + "/config/environment.rb" require "rails/test_help" require "rails/generators/test_case" require "capybara/rails" require "database_cleaner" require "timecop" require "generators/authpro/authpro_generator" Rails.backtrace_cleaner.remove_silencers! DatabaseCleaner.strategy = :truncation class ActionDispatch::IntegrationTest include Capybara::DSL self.use_transactional_fixtures = false teardown do DatabaseCleaner.clean Capybara.reset_sessions! Capybara.use_default_driver end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
authpro-0.1.0 | test/test_helper.rb |