Update haml and slim dependencies in tests
This commit is contained in:
parent
b8baad869e
commit
c112b9697f
4
Gemfile
4
Gemfile
|
@ -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 ]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue