Sha256: fcf4091110e3202c12fd9679a81d61e5fe9c7b1fccaf3f4c14e6b01c523c46fb

Contents?: true

Size: 1.09 KB

Versions: 12

Compression:

Stored size: 1.09 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

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
bkwld-paper_trail-2.3.3 test/test_helper.rb
paper_trail-2.3.3 test/test_helper.rb
bkwld-paper_trail-2.3.2 test/test_helper.rb
paper_trail-2.3.2 test/test_helper.rb
paper_trail-2.3.1 test/test_helper.rb
paper_trail-2.3.0 test/test_helper.rb
paper_trail-2.2.9 test/test_helper.rb
paper_trail-2.2.6 test/test_helper.rb
paper_trail-2.2.5 test/test_helper.rb
paper_trail-2.2.4 test/test_helper.rb
paper_trail-2.2.3 test/test_helper.rb
paper_trail-2.2.2 test/test_helper.rb