Sha256: 1033bc3dcfd954e01458cf0ffbfc847c920877fff20aa47973384e5fd9e92eb6

Contents?: true

Size: 772 Bytes

Versions: 7

Compression:

Stored size: 772 Bytes

Contents

# Configure Rails Envinronment
ENV["RAILS_ENV"] = "test"

require File.expand_path("../dummy/config/environment.rb",  __FILE__)
require "rails/test_help"

class ActiveSupport::TestCase
  setup { Cohortly::Metric.delete_all }
end


ActionMailer::Base.delivery_method = :test
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.default_url_options[:host] = "test.com"

Rails.backtrace_cleaner.remove_silencers!

# 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 }

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cohortly-0.0.7 test/test_helper.rb
cohortly-0.0.6 test/test_helper.rb
cohortly-0.0.5 test/test_helper.rb
cohortly-0.0.4 test/test_helper.rb
cohortly-0.0.3 test/test_helper.rb
cohortly-0.0.2 test/test_helper.rb
cohortly-0.0.1 test/test_helper.rb