Skip to content

Commit

Permalink
Account for windows style line endings in UTF8 test
Browse files Browse the repository at this point in the history
  • Loading branch information
codylerum committed Aug 20, 2012
1 parent 0b89908 commit b7e3f5a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/erb_handler_spec.rb
Expand Up @@ -48,7 +48,11 @@ def create_context
it "should handle UTF character encodings" do
page = Awestruct::Page.new( @site, Awestruct::Handlers::ErbHandler::CHAIN.create( @site, handler_file("erb-utf-page.html.erb") ) )
page.prepare!
page.content.should == "# coding: UTF-8\nBesøg fra Danmark\n"
if(RUBY_PLATFORM !~ /mingw/)
page.content.should == "# coding: UTF-8\nBesøg fra Danmark\n"
else
page.content.should == "# coding: UTF-8\r\nBesøg fra Danmark\r\n"
end
page.content
end

Expand Down

0 comments on commit b7e3f5a

Please sign in to comment.