We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f585623 commit 1d4eea7Copy full SHA for 1d4eea7
sixnines.rb
@@ -363,7 +363,7 @@
363
file = File.join('assets/sass', "#{name}.sass")
364
error(404, "File not found: #{file}") unless File.exist?(file)
365
content_type 'text/css', charset: 'utf-8'
366
- Sass::Engine.new(file).render
+ Sass::Engine.new(File.read(file)).render
367
end
368
369
not_found do
test/test_sixnines.rb
@@ -45,6 +45,8 @@ def test_robots_txt
45
def test_css
46
get('/css/main.css')
47
assert(last_response.ok?)
48
+ assert(!last_response.body.empty?)
49
+ assert(last_response.body.include?('body {'), last_response.body)
50
51
52
def test_it_renders_home_page
0 commit comments