Skip to content

Commit

Permalink
Small tweak for jruby on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
LightGuard committed Feb 28, 2013
1 parent 68408f9 commit 3acfd64
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec/erb_handler_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: UTF-8 -*-
require 'spec_helper'
require 'rbconfig'

verify = lambda { |output|
output.should =~ %r(<h1>This is an ERB page</h1>)
Expand All @@ -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
}

Expand Down Expand Up @@ -48,4 +49,4 @@
let(:additional_config) { {:crunchy => 'bacon'} }
it_should_behave_like "a handler", theories

end
end

0 comments on commit 3acfd64

Please sign in to comment.