File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 41
41
42
42
it "accepts an encoding keyword for the encoding of the entries" do
43
43
dirs = Dir . foreach ( "#{ DirSpecs . mock_dir } /deeply/nested" , encoding : "utf-8" ) . to_a . sort
44
- dirs . each { |dir | dir . encoding . should == Encoding ::UTF_8 }
44
+ dirs . each { |dir | dir . encoding . should == Encoding ::UTF_8 }
45
45
46
- dirs = Dir . foreach ( "#{ DirSpecs . mock_dir } /deeply/nested" , encoding : Encoding ::UTF_16LE ) . to_a . sort
47
- dirs . each { |dir | dir . encoding . should == Encoding ::UTF_16LE }
46
+ dirs = Dir . foreach ( "#{ DirSpecs . mock_dir } /deeply/nested" , encoding : Encoding ::ISO_8859_1 ) . to_a . sort
47
+ dirs . each { |dir | dir . encoding . should == Encoding ::ISO_8859_1 }
48
48
49
- Dir . foreach ( "#{ DirSpecs . mock_dir } /deeply/nested" , encoding : Encoding ::UTF_16LE ) do |f |
50
- f . encoding . should == Encoding ::UTF_16LE
49
+ Dir . foreach ( "#{ DirSpecs . mock_dir } /deeply/nested" , encoding : Encoding ::ISO_8859_1 ) do |f |
50
+ f . encoding . should == Encoding ::ISO_8859_1
51
51
end
52
52
end
53
53
You can’t perform that action at this time.
0 commit comments