Sha256: 881f4a08f20a1ae30db1422dc6f661e7f77863c5b04a44d4aebdee07cee853b1

Contents?: true

Size: 1.25 KB

Versions: 14

Compression:

Stored size: 1.25 KB

Contents

$VERBOSE = nil
require 'rubygems'
require 'rake' # echoe relies on Rake being present but doesn't require it itself
require 'echoe'
require 'test/unit'
require 'multi_rails_init'
#require 'ruby-debug' # uncomment if needed (for Ruby >= 1.9 use require 'debug' where needed)

if defined? ENV['MULTIRAILS_RAILS_VERSION']
  ENV['RAILS_GEM_VERSION'] = ENV['MULTIRAILS_RAILS_VERSION']
end

Echoe.silence do
  HERE = File.expand_path(File.dirname(__FILE__))
  $LOAD_PATH << HERE
  # $LOAD_PATH << "#{HERE}/integration/app"
end

LOG = "#{HERE}/integration/app/log/development.log"     

### For unit tests

require 'integration/app/config/environment'
require 'test_help'

ActiveSupport::Inflector.inflections {|i| i.irregular 'fish', 'fish' }

$LOAD_PATH.unshift(ActiveSupport::TestCase.fixture_path = HERE + "/fixtures")
$LOAD_PATH.unshift(HERE + "/models")
$LOAD_PATH.unshift(HERE + "/modules")

class ActiveSupport::TestCase
  self.use_transactional_fixtures = !(ActiveRecord::Base.connection.is_a? ActiveRecord::ConnectionAdapters::MysqlAdapter rescue false)
  self.use_instantiated_fixtures  = false
end

Echoe.silence do
  load(HERE + "/schema.rb")
end

### For integration tests

def truncate
  system("> #{LOG}")
end

def log
  File.open(LOG, 'r') do |f|
    f.read
  end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
radiant-tags-extension-1.6.10 vendor/plugins/has_many_polymorphs/test/test_helper.rb
johnsbrn-has_many_polymorphs-2.13.4 test/test_helper.rb
radiant-tags-extension-1.6.9 vendor/plugins/has_many_polymorphs/test/test_helper.rb
radiant-tags-extension-1.6.8 vendor/plugins/has_many_polymorphs/test/test_helper.rb
radiant-tags-extension-1.6.7 vendor/plugins/has_many_polymorphs/test/test_helper.rb
radiant-tags-extension-1.6.6 vendor/plugins/has_many_polymorphs/test/test_helper.rb
radiant-tags-extension-1.6.5 vendor/plugins/has_many_polymorphs/test/test_helper.rb
radiant-tags-extension-1.6.4 vendor/plugins/has_many_polymorphs/test/test_helper.rb
radiant-tags-extension-1.6.3 vendor/plugins/has_many_polymorphs/test/test_helper.rb
radiant-tags-extension-1.6.2 vendor/plugins/has_many_polymorphs/test/test_helper.rb
radiant-tags-extension-1.6.1 vendor/plugins/has_many_polymorphs/test/test_helper.rb
radiant-tags-extension-1.6.0 vendor/plugins/has_many_polymorphs/test/test_helper.rb
radiant-tags-extension-1.5.1 vendor/plugins/has_many_polymorphs/test/test_helper.rb
has_many_polymorphs-2.2 test/test_helper.rb