spec/sprockets-sass_spec.rb in sprockets-sass-1.0.1 vs spec/sprockets-sass_spec.rb in sprockets-sass-1.0.2

- old
+ new

@@ -84,9 +84,17 @@ @assets.file 'folder/subfolder/_dep-2.css.scss', '$color: blue;' asset = @env['folder/main.css'] expect(asset.to_s).to eql("body {\n background-color: red;\n color: blue; }\n") end + it 'imports deeply nested relative partials' do + @assets.file 'package-prime/stylesheets/main.scss', %(@import "package-dep/src/stylesheets/variables";\nbody { background-color: $background-color; color: $color; }) + @assets.file 'package-dep/src/stylesheets/_variables.scss', %(@import "./colors";\n$background-color: red;) + @assets.file 'package-dep/src/stylesheets/_colors.scss', '$color: blue;' + asset = @env['package-prime/stylesheets/main.scss'] + expect(asset.to_s).to eql("body {\n background-color: red;\n color: blue; }\n") + end + it 'imports relative files without preceding ./' do @assets.file 'folder/main.css.scss', %(@import "dep-1";\n@import "subfolder/dep-2";\nbody { background-color: $background-color; color: $color; }) @assets.file 'folder/dep-1.css.scss', '$background-color: red;' @assets.file 'folder/subfolder/dep-2.css.scss', '$color: blue;' asset = @env['folder/main.css']