test/test_page.rb in serious-0.2.12 vs test/test_page.rb in serious-0.3.0

- old
+ new

@@ -1,5 +1,6 @@ +# encoding: utf-8 require 'helper' class TestPage < Test::Unit::TestCase # ======================================================================== # Tests for all pages @@ -73,15 +74,15 @@ should "have initialized the @content instance variable to a string" do assert @page.instance_variable_get(:@content).kind_of?(String) end - should "have summary set to 'Some text about me'" do - assert_equal 'Some text about me', @page.summary + should "have summary set to 'Some text about me and ☃'" do + assert_equal 'Some text about me and ☃', @page.summary end - should 'have formatted body set to "<p>Some text about me</p>\n\n<p>And some more content with erb</p>\n"' do - assert_equal "<p>Some text about me</p>\n\n<p>And some more content with erb</p>\n", @page.body.formatted + should 'have formatted body set to "<p>Some text about me and ☃</p>\n\n<p>And some more content with erb</p>\n"' do + assert_equal "<p>Some text about me and ☃</p>\n\n<p>And some more content with erb</p>\n", @page.body.formatted end end end context "The page 'foo-bar'" do