Update haml and slim dependencies in tests

This commit is contained in:
Eloy Pérez 2022-02-27 12:26:32 +01:00
parent b8baad869e
commit c112b9697f
2 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ gem 'yajl-ruby', platforms: [ :ruby ]
gem 'nokogiri', '> 1.5.0'
gem 'rainbows', platforms: [ :ruby ]
gem 'eventmachine'
gem 'slim', '~> 2.0'
gem 'slim', '~> 4'
gem 'coffee-script', '>= 2.0'
gem 'rdoc'
gem 'kramdown'
@ -47,7 +47,7 @@ gem 'liquid'
gem 'rabl'
gem 'builder'
gem 'erubi'
gem 'haml', '>= 3.0'
gem 'haml', '~> 5'
gem 'sass'
gem 'celluloid', '~> 0.16.0'
gem 'commonmarker', '~> 0.20.0', platforms: [ :ruby ]

View File

@ -31,13 +31,13 @@ class HAMLTest < Minitest::Test
end
get '/'
assert ok?
assert_equal "<h1>THIS. IS. <EM>SPARTA</EM></h1>\n", body
assert_equal "<h1>THIS. IS. <EM>SPARTA</EM>\n</h1>\n", body
end
it "renders with file layouts" do
haml_app { haml 'Hello World', :layout => :layout2 }
assert ok?
assert_equal "<h1>HAML Layout!</h1>\n<p>Hello World</p>\n", body
assert_equal "<h1>HAML Layout!</h1>\n<p>Hello World\n</p>\n", body
end
it "raises error if template not found" do