Sha256: 03bb5b89a613fb82f485fca8e3144b073b2b08fa24351905a4446adb57cb95d2
Contents?: true
Size: 696 Bytes
Versions: 8
Compression:
Stored size: 696 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 # 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
8 entries across 8 versions & 2 rubygems