forked from rails/sass-rails
/
test_helper.rb
27 lines (21 loc) · 885 Bytes
/
test_helper.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Configure Rails Envinronment
ENV["RAILS_ENV"] = "test"
require 'rails'
require "rails/test_help"
require 'sass/rails'
require 'sfl'
Rails.backtrace_cleaner.remove_silencers!
# Set locations of local gems in this hash.
# They will be added/replaced in the generated Gemfiles
# You should also set them in the local Gemfile
$gem_locations = {
"sass-rails" => File.expand_path("../../", __FILE__)
}
# Uncomment this if you need to test against a local rails checkout
# $gem_locations["rails"] = "/Users/chris/Projects/rails"
# Uncomment this if you need to test against a local sass checkout
# $gem_locations["sass"] = "/Users/chris/Projects/sass"
# Uncomment this if you need to test against a local sprockets checkout
# $gem_locations["sprockets"] = "/Users/chris/Projects/sprockets"
# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }