Sha256: 4f22d60bf39848380891bf38706c1d454e84280c35edf74efc44776204d53050

Contents?: true

Size: 729 Bytes

Versions: 6

Compression:

Stored size: 729 Bytes

Contents

# Configure Rails Envinronment
ENV["RAILS_ENV"] = "test"
ENV["RAILS_VER"] ||= "2"

require "somehow_has_relation"

require File.expand_path("../dummy#{ENV["RAILS_VER"]}/config/environment.rb",  __FILE__)

if ENV["RAILS_VER"] == "2"
  require "test_help" 
else
  require "rails/test_help"
end

require 'redgreen'

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

Rails.backtrace_cleaner.remove_silencers!

# Run any available migration
ActiveRecord::Migrator.migrate File.expand_path("../dummy#{ENV["RAILS_VER"]}/db/migrate/", __FILE__)

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

Version data entries

6 entries across 6 versions & 1 rubygems

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