Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add test for sass import bug

  • Loading branch information...
commit 4f7b5a0749d47f0a4b636ed824345ff8149d5bf3 1 parent 36edf5e
@josh josh authored
View
2  test/fixtures/sass/_colors.scss
@@ -0,0 +1,2 @@
+$link: "red";
+$header: 'blue';
View
3  test/fixtures/sass/_header.scss
@@ -0,0 +1,3 @@
+#header {
+ color: $header;
+}
View
5 test/fixtures/sass/links.scss
@@ -0,0 +1,5 @@
+@import "colors";
+
+a:link {
+ color: $link;
+}
View
2  test/fixtures/sass/main.scss
@@ -0,0 +1,2 @@
+$header: 'blue';
+@import "header";
View
14 test/test_sass.rb
@@ -199,6 +199,20 @@ def render(path)
end
end
+ test "reference @import'd variable" do
+ assert_equal <<-EOS, render('sass/links.scss')
+a:link {
+ color: "red"; }
+ EOS
+ end
+
+ test "@import reference variable" do
+ assert_equal <<-EOS, render('sass/main.scss')
+#header {
+ color: "blue"; }
+ EOS
+ end
+
def silence_warnings
old_verbose, $VERBOSE = $VERBOSE, false
yield
Please sign in to comment.
Something went wrong with that request. Please try again.