Skip to content

Commit

Permalink
Added a test for compass filter working with .scss files.
Browse files Browse the repository at this point in the history
  • Loading branch information
miracle2k committed Nov 5, 2010
1 parent 44e53f5 commit ebf81fd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_filters.py
Expand Up @@ -156,6 +156,12 @@ class TestBuiltinFilters(BuildTestHelper):
color: #FFFFFF;
}
""",
'foo.scss': """
h1 {
font-family: "Verdana" ;
color: #FFFFFF;
}
""",
'foo.sass': '''h1
font-family: "Verdana"
color: #FFFFFF
Expand All @@ -173,6 +179,12 @@ def test_compass(self):
self.mkbundle('foo.sass', filters='compass', output='out.css').build()
assert self.get('out.css') == """/* line 1, in.sass */\nh1 {\n font-family: "Verdana";\n color: white;\n}\n"""

def test_compass_with_scss(self):
# [bug] test compass with scss files
self.mkbundle('foo.scss', filters='compass', output='out.css').build()
print self.get('out.css')
assert self.get('out.css') == """/* line 2, in.scss */\nh1 {\n font-family: "Verdana";\n color: #FFFFFF;\n}\n"""

def test_sass(self):
sass = get_filter('sass', debug_info=False)
self.mkbundle('foo.sass', filters=sass, output='out.css').build()
Expand Down

0 comments on commit ebf81fd

Please sign in to comment.