Sha256: 51b46305057be5a4810f7acc347e0103a0618df3f184a38e47a08d57c689bd02
Contents?: true
Size: 1.24 KB
Versions: 3
Compression:
Stored size: 1.24 KB
Contents
# Configure Rails Envinronment ENV["RAILS_ENV"] = "test" require File.expand_path("../dummy/config/environment.rb", __FILE__) require "rails/test_help" begin require 'turn' rescue LoadError # noop end #ActionMailer::Base.delivery_method = :test #ActionMailer::Base.perform_deliveries = true #ActionMailer::Base.default_url_options[:host] = "test.com" Rails.backtrace_cleaner.remove_silencers! require 'shoulda' # Configure capybara for integration testing require "capybara/rails" Capybara.default_driver = :rack_test Capybara.default_selector = :css # Run any available migration ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__) # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } # global setup block resetting Thread.current class ActiveSupport::TestCase teardown do Thread.current[:paper_trail] = nil end end # # Helpers # def change_schema ActiveRecord::Migration.verbose = false ActiveRecord::Schema.define do remove_column :widgets, :sacrificial_column end ActiveRecord::Migration.verbose = true end class Version < ActiveRecord::Base attr_accessible :created_at, :updated_at, :answer, :action, :question, :article_id, :ip, :user_agent end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
paper_trail-2.5.0 | test/test_helper.rb |
paper_trail-2.4.1 | test/test_helper.rb |
paper_trail-2.4.0 | test/test_helper.rb |