File: compiler_test.rb

package info (click to toggle)
ruby-compass 1.0.1~dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 8,152 kB
  • ctags: 1,795
  • sloc: ruby: 12,901; makefile: 127; perl: 43; xml: 14; sh: 4
file content (16 lines) | stat: -rw-r--r-- 610 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'test_helper'
require 'fileutils'

class CompilerTest < Test::Unit::TestCase
  
  it "should strip css from file name and reappend" do
    config = Compass::Configuration::Data.new("test",
                                              :project_path => Dir.pwd,
                                              :sass_dir => "foo",
                                              :css_dir => "bar")
    config.extend(Compass::Configuration::Defaults)
    compiler = Compass.sass_compiler({}, config)
    assert_equal 'screen', compiler.stylesheet_name(File.join(Dir.pwd, 'foo', 'screen.css.scss'))
  end

end