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