Sha256: e71ef86a866dd43d2219a7c6bc699e6b3e0b2afde84e729011b2f0a8587a9565
Contents?: true
Size: 810 Bytes
Versions: 1
Compression:
Stored size: 810 Bytes
Contents
require "test_helper" require "csscss/sass_include_extensions" module Csscss describe "sass import extensions" do it "should do something" do scss =<<-SCSS @mixin foo { font: { family: serif; size: 10px; } display: block; } @mixin bar { outline: 1px; } h1 { @include foo; @include bar; } SCSS css =<<-CSS h1 { /* CSSCSS START MIXIN: foo */ font-family: serif; font-size: 10px; display: block; /* CSSCSS END MIXIN: foo */ /* CSSCSS START MIXIN: bar */ outline: 1px; /* CSSCSS END MIXIN: bar */ } CSS tree = Sass::Engine.new(scss, syntax: :scss).to_tree Csscss::SassMixinVisitor.visit(tree) tree.render.must_equal(css) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
csscss-1.3.0 | test/csscss/sass_include_extensions_test.rb |