Skip to content

Commit bbd9105

Browse files
rmm5tFrancesco Rodriguez
authored andcommitted
Added failing test while importing stylesheets with erb handlers
Exhibits Sass::SyntaxError "File to import not found or unreadable" while trying to import a stylesheet of the form file.{css,scss}.erb [#139]
1 parent 44e8d0d commit bbd9105

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

test/fixtures/scss_project/app/assets/stylesheets/application.css.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
@import "subfolder/plain";
55
@import "subfolder/second_level";
66
@import "partials/without_css_ext";
7+
@import "erb_handler";
78

89
.main {
910
color: yellow;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.erb-handler {
2+
margin: <%= 0 %>;
3+
}

test/sass_rails_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ class SassRailsTest < Sass::Rails::TestCase
8181
assert_match /plain-old-css/, css_output
8282
assert_match /another-plain-old-css/, css_output
8383
assert_match /without-css-ext/, css_output
84+
assert_match /erb-handler/, css_output
8485
end
8586

8687
test 'sass asset paths work' do

0 commit comments

Comments
 (0)