From 3acfd64741c8c48804d5d6807da8e8ff4b0d4023 Mon Sep 17 00:00:00 2001 From: LightGuard Date: Thu, 28 Feb 2013 12:34:22 -0700 Subject: [PATCH] Small tweak for jruby on windows --- spec/erb_handler_spec.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spec/erb_handler_spec.rb b/spec/erb_handler_spec.rb index 77987d24..aaffa611 100644 --- a/spec/erb_handler_spec.rb +++ b/spec/erb_handler_spec.rb @@ -1,5 +1,6 @@ # -*- coding: UTF-8 -*- require 'spec_helper' +require 'rbconfig' verify = lambda { |output| output.should =~ %r(

This is an ERB page

) @@ -12,10 +13,10 @@ } verify_with_utf8 = lambda { |output| - if(RUBY_PLATFORM !~ /mingw/) + if(RbConfig::CONFIG['target_os'] !~ /mswin|mingw/) output.should == "Besøg fra Danmark\n" else - output.should == "Besøg fra Danmark\n" + output.should == "Besøg fra Danmark\r\n" end } @@ -48,4 +49,4 @@ let(:additional_config) { {:crunchy => 'bacon'} } it_should_behave_like "a handler", theories -end \ No newline at end of file +end