Permalink
Browse files

add spec for .lss files

  • Loading branch information...
1 parent d2580e2 commit 826728ccde7c6935b2007cfabc9000589e3b2c51 @grosser grosser committed Feb 13, 2010
Showing with 8 additions and 2 deletions.
  1. +8 −2 test/more_test.rb
View
@@ -88,14 +88,20 @@ def assert_not_include(item, obj)
`rm -rf #{less_path}`
end
- should "include import partials" do
+ should 'generate css from .lss files' do
+ write_less 'test.lss', "a{color:red}"
+ Less::More.generate_all
+ assert_include 'a { color: red; }', read_css('test.css')
+ end
+
+ should "include imported partials" do
write_less 'test.less', "@import '_partial';\nb{color:blue}"
write_less '_partial.less', 'a{color:red}'
Less::More.generate_all
assert_include 'a { color: red; }', read_css('test.css')
end
- should "not parse partials" do
+ should "not generate css from partials" do
write_less '_partial.less', 'a{color:red}'
Less::More.generate_all
assert_equal '', `ls #{css_path}`.strip

0 comments on commit 826728c

Please sign in to comment.