Sha256: 1b88cd6284b18041cac25027e0db58f35eca05a02dcfb376f188f8984a0c5f89

Contents?: true

Size: 737 Bytes

Versions: 21

Compression:

Stored size: 737 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'
else
  require 'rubygems'
end
require 'action_controller'
require 'action_view'

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

21 entries across 21 versions & 2 rubygems

Version Path
haml-edge-2.3.69 test/linked_rails.rb
haml-edge-2.3.68 test/linked_rails.rb
haml-edge-2.3.67 test/linked_rails.rb
haml-edge-2.3.66 test/linked_rails.rb
haml-2.2.10 test/linked_rails.rb
haml-edge-2.3.65 test/linked_rails.rb
haml-edge-2.3.64 test/linked_rails.rb
haml-edge-2.3.63 test/linked_rails.rb
haml-edge-2.3.62 test/linked_rails.rb
haml-edge-2.3.61 test/linked_rails.rb
haml-edge-2.3.60 test/linked_rails.rb
haml-edge-2.3.59 test/linked_rails.rb
haml-edge-2.3.58 test/linked_rails.rb
haml-edge-2.3.57 test/linked_rails.rb
haml-edge-2.3.56 test/linked_rails.rb
haml-edge-2.3.55 test/linked_rails.rb
haml-edge-2.3.54 test/linked_rails.rb
haml-edge-2.3.53 test/linked_rails.rb
haml-2.2.9 test/linked_rails.rb
haml-edge-2.3.52 test/linked_rails.rb