1 require_relative '../spec_helper'
3 describe 'The --external-encoding command line option sets Encoding.default_external' do
5 @test_string = "print Encoding.default_external.name"
8 it "if given an encoding with an =" do
9 ruby_exe(@test_string, options: '--external-encoding=big5').should == Encoding::Big5.name
12 it "if given an encoding as a separate argument" do
13 ruby_exe(@test_string, options: '--external-encoding big5').should == Encoding::Big5.name