Permalink
Browse files

Stub ENV for charset test

Closes #317
  • Loading branch information...
1 parent 2525d19 commit a061eea8c4e18522df296dd05e2ef924e6e8c563 @lsegal committed May 22, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 spec/templates/helpers/html_helper_spec.rb
View
1 spec/templates/helpers/html_helper_spec.rb
@@ -36,6 +36,7 @@ def options; {} end
end if RUBY19
it "should take file encoding if there is a file" do
+ ENV.stub!(:[]).with('LANG').and_return('utf-8') if RUBY18
@file = OpenStruct.new(:contents => 'foo')
charset.should == 'utf-8'
end if RUBY18

0 comments on commit a061eea

Please sign in to comment.