From 495cb350112fe435c9ebd8b280f0ec7316c3d2e1 Mon Sep 17 00:00:00 2001 From: Steve Hodgkiss Date: Fri, 5 Nov 2010 10:41:54 +0000 Subject: [PATCH] Update slim tests Signed-off-by: Konstantin Haase --- test/slim_test.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/slim_test.rb b/test/slim_test.rb index 3f950269..5248d227 100644 --- a/test/slim_test.rb +++ b/test/slim_test.rb @@ -27,7 +27,7 @@ class SlimTest < Test::Unit::TestCase it "renders with inline layouts" do mock_app { layout { %(h1\n | THIS. IS. \n == yield.upcase ) } - get('/') { slim 'em Sparta ' } + get('/') { slim 'em Sparta' } } get '/' assert ok? @@ -36,7 +36,7 @@ class SlimTest < Test::Unit::TestCase it "renders with file layouts" do slim_app { - slim '| Hello World ', :layout => :layout2 + slim '| Hello World', :layout => :layout2 } assert ok? assert_equal "

Slim Layout!

Hello World

", body @@ -54,7 +54,7 @@ class SlimTest < Test::Unit::TestCase it "passes slim options to the slim engine" do mock_app { get '/' do - slim "! doctype html\nh1 Hello World ", :format => :html4 + slim "! doctype html\nh1 Hello World", :format => :html4 end } get '/' @@ -66,7 +66,7 @@ class SlimTest < Test::Unit::TestCase mock_app { set :slim, {:format => :html4} get '/' do - slim "! doctype html\nh1 Hello World " + slim "! doctype html\nh1 Hello World" end } get '/' @@ -78,10 +78,10 @@ class SlimTest < Test::Unit::TestCase mock_app { set :haml, {:format => :html5, :attr_wrapper => '"'} # default slim attr are get '/' do - slim "! doctype html\nh1.header Hello World " + slim "! doctype html\nh1.header Hello World" end get '/html4' do - slim "! doctype html\nh1.header Hello World ", :format => :html4 + slim "! doctype html\nh1.header Hello World", :format => :html4 end } get '/'