diff --git a/test/nokogiri_test.rb b/test/nokogiri_test.rb index 3e30aa39..3d708171 100644 --- a/test/nokogiri_test.rb +++ b/test/nokogiri_test.rb @@ -15,7 +15,7 @@ class NokogiriTest < Test::Unit::TestCase it 'renders inline Nokogiri strings' do nokogiri_app { nokogiri 'xml' } assert ok? - assert_body %{\n} + assert_body %(\n) end it 'renders inline blocks' do @@ -26,7 +26,7 @@ class NokogiriTest < Test::Unit::TestCase end end assert ok? - assert_body "\nFrank & Mary\n" + assert_body %(\nFrank & Mary\n) end it 'renders .nokogiri files in views path' do @@ -35,7 +35,7 @@ class NokogiriTest < Test::Unit::TestCase nokogiri :hello end assert ok? - assert_body %(\nYou're my boy, Blue!\n) + assert_body "\nYou're my boy, Blue!\n" end it "renders with inline layouts" do @@ -46,17 +46,16 @@ class NokogiriTest < Test::Unit::TestCase end get '/' assert ok? - assert_body "\n\n Hello World\n\n" + assert_body %(\n\n Hello World\n\n) end it "renders with file layouts" do next if Tilt::VERSION <= "1.1" nokogiri_app do - @name = "Blue" nokogiri %(xml.em 'Hello World'), :layout => :layout2 end assert ok? - assert_body "\n\n Hello World\n\n" + assert_body %(\n\n Hello World\n\n) end it "raises error if template not found" do