Skip to content

Commit

Permalink
ensure sassc tests are working properly
Browse files Browse the repository at this point in the history
  • Loading branch information
bolandrm authored and schneems committed Jun 22, 2016
1 parent 6826b01 commit 201a69d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/sprockets/sassc_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ def call(input)
change_source(SourceMapUtils.decode_json_source_map(map)["mappings"], input[:source_path])
)

engine.dependencies.each do |dependency|
context.metadata[:dependencies] << URIUtils.build_file_digest_uri(dependency.filename)
end

context.metadata.merge(data: css, map: map)
end

Expand Down
2 changes: 1 addition & 1 deletion test/shared_sass_tests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ module SharedSassTestSprockets
end

test "@import css file from load path" do
assert_equal "\n", render('sass/import_load_path.scss')
assert_match /\A\s*\z/, render('sass/import_load_path.scss')
end

test "process css file" do
Expand Down
1 change: 1 addition & 0 deletions test/test_sassc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def setup
env.append_path(fixture_path('compass'))
env.append_path(fixture_path('octicons'))
env.register_transformer 'text/sass', 'text/css', Sprockets::SasscProcessor.new
env.register_transformer 'text/scss', 'text/css', Sprockets::ScsscProcessor.new
end
end

Expand Down

0 comments on commit 201a69d

Please sign in to comment.