@@ -54,7 +54,7 @@ def initialize_prod!
54
54
def test_setup_works
55
55
initialize_dev!
56
56
57
- asset = render_asset ( "application.scss " )
57
+ asset = render_asset ( "application.css " )
58
58
59
59
assert_equal <<-CSS , asset
60
60
.hello {
@@ -67,7 +67,7 @@ def test_raises_sassc_syntax_error
67
67
initialize!
68
68
69
69
assert_raises ( SassC ::SyntaxError ) do
70
- render_asset ( "syntax_error.scss " )
70
+ render_asset ( "syntax_error.css " )
71
71
end
72
72
end
73
73
@@ -76,7 +76,7 @@ def test_all_sass_asset_paths_work
76
76
77
77
initialize!
78
78
79
- css_output = render_asset ( "helpers_test.scss " )
79
+ css_output = render_asset ( "helpers_test.css " )
80
80
81
81
assert_match %r{asset-path:\s *"/assets/rails.png"} , css_output , 'asset-path:\s*"/assets/rails.png"'
82
82
assert_match %r{asset-url:\s *url\( /assets/rails.png\) } , css_output , 'asset-url:\s*url\(/assets/rails.png\)'
@@ -87,7 +87,7 @@ def test_all_sass_asset_paths_work
87
87
def test_sass_asset_paths_work
88
88
initialize!
89
89
90
- css_output = render_asset ( "helpers_test.scss " )
90
+ css_output = render_asset ( "helpers_test.css " )
91
91
92
92
assert_match %r{video-path:\s *"/videos/rails.mp4"} , css_output , 'video-path:\s*"/videos/rails.mp4"'
93
93
assert_match %r{video-url:\s *url\( /videos/rails.mp4\) } , css_output , 'video-url:\s*url\(/videos/rails.mp4\)'
@@ -118,7 +118,7 @@ def test_sass_asset_paths_work
118
118
def test_sass_imports_work_correctly
119
119
initialize!
120
120
121
- css_output = render_asset ( "imports_test.scss " )
121
+ css_output = render_asset ( "imports_test.css " )
122
122
assert_match /main/ , css_output
123
123
assert_match /top-level/ , css_output
124
124
assert_match /partial-sass/ , css_output
@@ -162,7 +162,7 @@ def test_line_comments_active_in_dev
162
162
@app . config . sass . line_comments = true
163
163
initialize_dev!
164
164
165
- css_output = render_asset ( "css_scss_handler.css.scss " )
165
+ css_output = render_asset ( "css_scss_handler.css" )
166
166
assert_match %r{/* line 1} , css_output
167
167
assert_match %r{.+/sassc-rails/test/dummy/app/assets/stylesheets/css_scss_handler.css.scss} , css_output
168
168
end
@@ -176,7 +176,7 @@ def test_context_is_being_passed_to_erb_render
176
176
177
177
def test_special_characters_compile
178
178
initialize!
179
- css_output = render_asset ( "special_characters.scss " )
179
+ css_output = render_asset ( "special_characters.css " )
180
180
end
181
181
182
182
def test_css_compressor_config_item_is_honored_if_not_development_mode
@@ -204,7 +204,7 @@ def test_css_compressor_is_defined_in_prod_mode
204
204
def test_compression_works
205
205
initialize_prod!
206
206
207
- asset = render_asset ( "application.scss " )
207
+ asset = render_asset ( "application.css " )
208
208
assert_equal <<-CSS , asset
209
209
.hello{color:#FFF}
210
210
CSS
@@ -213,7 +213,7 @@ def test_compression_works
213
213
def test_compression_works
214
214
initialize_prod!
215
215
216
- asset = render_asset ( "application.scss " )
216
+ asset = render_asset ( "application.css " )
217
217
assert_equal <<-CSS , asset
218
218
.hello{color:#FFF}
219
219
CSS
@@ -226,14 +226,14 @@ def test_sassc_compression_is_used
226
226
227
227
initialize_prod!
228
228
229
- render_asset ( "application.scss " )
229
+ render_asset ( "application.css " )
230
230
end
231
231
232
232
def test_allows_for_inclusion_of_inline_source_maps
233
233
@app . config . sass . inline_source_maps = true
234
234
initialize_dev!
235
235
236
- asset = render_asset ( "application.scss " )
236
+ asset = render_asset ( "application.css " )
237
237
assert_match /.hello/ , asset
238
238
assert_match /sourceMappingURL/ , asset
239
239
end
@@ -278,14 +278,14 @@ def test_globbed_imports_work_when_globbed_file_is_changed
278
278
file . puts '.new-file-test { color: #000; }'
279
279
end
280
280
281
- css_output = render_asset ( "glob_test.scss " )
281
+ css_output = render_asset ( "glob_test.css " )
282
282
assert_match /new-file-test/ , css_output
283
283
284
284
File . open ( new_file , 'w' ) do |file |
285
285
file . puts '.changed-file-test { color: #000; }'
286
286
end
287
287
288
- new_css_output = render_asset ( "glob_test.scss " )
288
+ new_css_output = render_asset ( "glob_test.css " )
289
289
assert_match /changed-file-test/ , new_css_output
290
290
refute_equal css_output , new_css_output
291
291
ensure
@@ -297,15 +297,15 @@ def test_globbed_imports_work_when_globbed_file_is_added
297
297
begin
298
298
initialize!
299
299
300
- css_output = render_asset ( "glob_test.scss " )
300
+ css_output = render_asset ( "glob_test.css " )
301
301
refute_match /changed-file-test/ , css_output
302
302
new_file = File . join ( File . dirname ( __FILE__ ) , 'dummy' , 'app' , 'assets' , 'stylesheets' , 'globbed' , 'new_glob.scss' )
303
303
304
304
File . open ( new_file , 'w' ) do |file |
305
305
file . puts '.changed-file-test { color: #000; }'
306
306
end
307
307
308
- new_css_output = render_asset ( "glob_test.scss " )
308
+ new_css_output = render_asset ( "glob_test.css " )
309
309
assert_match /changed-file-test/ , new_css_output
310
310
refute_equal css_output , new_css_output
311
311
ensure
0 commit comments