Skip to content

Commit 072a9ed

Browse files
committed
Fixed SASS test, it actually cares about single vs double quotes.
1 parent 05fdcb0 commit 072a9ed

2 files changed

Lines changed: 4 additions & 12 deletions

File tree

test/fixtures/jammed/css_test-sass.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/unit/test_sass_compressor.rb

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
require 'test_helper'
22

33
class SassCompressorTest < Test::Unit::TestCase
4-
5-
def setup
6-
Jammit.load_configuration('test/config/assets-sass.yml').reload!
7-
@compressor = Compressor.new
8-
end
9-
10-
def teardown
11-
Jammit.load_configuration('test/config/assets.yml').reload!
12-
end
13-
144
def test_css_compression
15-
packed = @compressor.compress_css(glob('test/fixtures/src/*.css'))
16-
assert_equal File.read('test/fixtures/jammed/css_test.css'), packed
5+
Jammit.load_configuration('test/config/assets-sass.yml')
6+
packed = Compressor.new.compress_css(glob('test/fixtures/src/*.css'))
7+
assert_equal File.read('test/fixtures/jammed/css_test-sass.css'), packed
178
end
189

1910
end

0 commit comments

Comments
 (0)