Sha256: d4cb5fcdf706d1b5991f2924dff9c95d9e433083c2cbd62e26ff04643ccb2c36

Contents?: true

Size: 965 Bytes

Versions: 10

Compression:

Stored size: 965 Bytes

Contents

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

need_gems = false
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
  need_gems = true
end

# allows testing with edge Haml by creating a test/haml symlink
linked_haml = File.dirname(__FILE__) + '/haml'

if File.exists?(linked_haml) && !$:.include?(linked_haml + '/lib')
  puts "[ using linked Haml ]"
  $:.unshift linked_haml + '/lib'
else
  need_gems = true
end

require 'rubygems' if need_gems

require 'action_controller'
require 'action_view'
require 'haml'
require 'sass'
require 'sass/plugin'


require 'test/unit'

Sass::Plugin.options[:template_location] = {
  "#{File.dirname(__FILE__)}/../src" => "#{File.dirname(__FILE__)}/tmp/blueprint"
}

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
arnebrasseur-compass-0.3.5.1 test/test_helper.rb
arnebrasseur-compass-0.3.5 test/test_helper.rb
chriseppstein-compass-0.1.1 test/test_helper.rb
chriseppstein-compass-0.3.0 test/test_helper.rb
chriseppstein-compass-0.3.1 test/test_helper.rb
chriseppstein-compass-0.3.2 test/test_helper.rb
chriseppstein-compass-0.3.3 test/test_helper.rb
chriseppstein-compass-0.3.4 test/test_helper.rb
chriseppstein-compass-0.3.6 test/test_helper.rb
chriseppstein-compass-0.3.7 test/test_helper.rb