Sha256: c68d9de1928a8ed493f433d6e0339adc31976650cf79c6f829dc1201ddbfbb63
Contents?: true
Size: 732 Bytes
Versions: 5
Compression:
Stored size: 732 Bytes
Contents
lib_dir = File.dirname(__FILE__) + '/../lib' require File.dirname(__FILE__) + '/linked_rails' require 'test/unit' require 'fileutils' $:.unshift lib_dir unless $:.include?(lib_dir) require 'haml' require 'sass' Sass::RAILS_LOADED = true unless defined?(Sass::RAILS_LOADED) # required because of Sass::Plugin unless defined? RAILS_ROOT RAILS_ROOT = '.' MERB_ENV = RAILS_ENV = 'testing' end class Test::Unit::TestCase def munge_filename(opts) return if opts[:filename] test_name = caller[1].gsub(/^.*`(?:\w+ )*(\w+)'.*$/, '\1') opts[:filename] = "#{test_name}_inline.sass" end def clean_up_sassc path = File.dirname(__FILE__) + "/../.sass-cache" FileUtils.rm_r(path) if File.exist?(path) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
haml-edge-2.3.12 | test/test_helper.rb |
haml-edge-2.3.13 | test/test_helper.rb |
haml-edge-2.3.14 | test/test_helper.rb |
haml-edge-2.3.15 | test/test_helper.rb |
haml-edge-2.3.16 | test/test_helper.rb |