Skip to content

Commit

Permalink
Remove utf8 test
Browse files Browse the repository at this point in the history
  • Loading branch information
lsegal committed Dec 26, 2020
1 parent 1518c0e commit e38755d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions spec/templates/helpers/html_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ def options
end
end

it "supports utf8 as an encoding value for utf-8" do
type = 'utf8'
expect(ENV).to receive(:[]).with('LANG').and_return(type) if YARD.ruby18?
Encoding.default_external = type if defined?(Encoding)
expect(charset).to eq 'utf-8'
end if RUBY_VERSION < '3'

it "takes file encoding if there is a file" do
@file = OpenStruct.new(:contents => String.new('foo').force_encoding('sjis'))
# not the correct charset name, but good enough
Expand Down

0 comments on commit e38755d

Please sign in to comment.