Sha256: 9472c06a2f914efae9455db92fe1129032023a434a660a6c7e2515a97ac4f1b2

Contents?: true

Size: 846 Bytes

Versions: 9

Compression:

Stored size: 846 Bytes

Contents

# allows testing with edge Rails by creating a test/rails symlink
linked_rails = File.dirname(__FILE__) + '/rails'

if File.exists?(linked_rails) && !$:.include?(linked_rails + '/activesupport/lib')
  puts "[ using linked Rails ]"
  $:.unshift linked_rails + '/activesupport/lib'
  $:.unshift linked_rails + '/actionpack/lib'
  $:.unshift linked_rails + '/railties/lib'
end
require 'rubygems'
require 'action_controller'
require 'action_view'

begin
  # Necessary for Rails 3
  require 'rails'
rescue LoadError
end

ActionController::Base.logger = Logger.new(nil)

# Load plugins from test/plugins.
# This will only work with very basic plugins,
# since we don't want to load the entirety of Rails.
Dir[File.dirname(__FILE__) + '/plugins/*'].each do |plugin|
  $: << plugin + '/lib'
  Object.new.instance_eval(File.read(plugin + '/init.rb'))
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
haml-edge-3.1.17 test/linked_rails.rb
haml-edge-3.1.16 test/linked_rails.rb
haml-3.0.4 test/linked_rails.rb
haml-edge-3.1.15 test/linked_rails.rb
haml-edge-3.1.14 test/linked_rails.rb
haml-edge-3.1.13 test/linked_rails.rb
haml-3.0.3 test/linked_rails.rb
haml-edge-3.1.12 test/linked_rails.rb
haml-edge-3.1.11 test/linked_rails.rb