Sha256: 6b71391026366d26b99f0768ef92107ed728d1f429ca4795e922201490f8e73d

Contents?: true

Size: 934 Bytes

Versions: 5

Compression:

Stored size: 934 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
    Cohortly::Metric.database.collections.each do |collection|
      unless collection.name =~ /^system\./
        collection.remove
      end
    end    
  }
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

5 entries across 5 versions & 1 rubygems

Version Path
cohortly-0.0.93 test/test_helper.rb
cohortly-0.0.92 test/test_helper.rb
cohortly-0.0.9.1 test/test_helper.rb
cohortly-0.0.9 test/test_helper.rb
cohortly-0.0.8 test/test_helper.rb