Permalink
Browse files

Add test for sass import bug

  • Loading branch information...
1 parent 36edf5e commit 4f7b5a0749d47f0a4b636ed824345ff8149d5bf3 @josh josh committed Oct 31, 2012
@@ -0,0 +1,2 @@
+$link: "red";
+$header: 'blue';
@@ -0,0 +1,3 @@
+#header {
+ color: $header;
+}
@@ -0,0 +1,5 @@
+@import "colors";
+
+a:link {
+ color: $link;
+}
@@ -0,0 +1,2 @@
+$header: 'blue';
+@import "header";
View
@@ -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

0 comments on commit 4f7b5a0

Please sign in to comment.