Skip to content

Commit 1d4eea7

Browse files
committed
#132 fixed and tested
1 parent f585623 commit 1d4eea7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

sixnines.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@
363363
file = File.join('assets/sass', "#{name}.sass")
364364
error(404, "File not found: #{file}") unless File.exist?(file)
365365
content_type 'text/css', charset: 'utf-8'
366-
Sass::Engine.new(file).render
366+
Sass::Engine.new(File.read(file)).render
367367
end
368368

369369
not_found do

test/test_sixnines.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def test_robots_txt
4545
def test_css
4646
get('/css/main.css')
4747
assert(last_response.ok?)
48+
assert(!last_response.body.empty?)
49+
assert(last_response.body.include?('body {'), last_response.body)
4850
end
4951

5052
def test_it_renders_home_page

0 commit comments

Comments
 (0)