File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 148148 ë = ( [ 235 ] . pack ( 'U' ) ) . encode ( 'ISO-8859-1' )
149149 ö = ( [ 246 ] . pack ( 'U' ) ) . encode ( 'ISO-8859-1' )
150150 res = "H#{ ë } ll#{ ö } "
151- File . binread ( @filename ) . should == res . force_encoding ( Encoding :: BINARY )
151+ File . binread ( @filename ) . should == res . b
152152 end
153153
154154 it "writes binary data with newline conversion if no encoding is given" do
158158 ë = ( [ 235 ] . pack ( 'U' ) ) . encode ( 'ISO-8859-1' )
159159 ö = ( [ 246 ] . pack ( 'U' ) ) . encode ( 'ISO-8859-1' )
160160 res = "H#{ ë } ll#{ ö } \r \n "
161- File . binread ( @filename ) . should == res . force_encoding ( Encoding :: BINARY )
161+ File . binread ( @filename ) . should == res . b
162162 end
163163
164164 it "writes binary data with newline conversion if encoding is ASCII-8BIT" do
168168 ë = ( [ 235 ] . pack ( 'U' ) ) . encode ( 'ISO-8859-1' )
169169 ö = ( [ 246 ] . pack ( 'U' ) ) . encode ( 'ISO-8859-1' )
170170 res = "H#{ ë } ll#{ ö } \r \n "
171- File . binread ( @filename ) . should == res . force_encoding ( Encoding :: BINARY )
171+ File . binread ( @filename ) . should == res . b
172172 end
173173end
174174
You can’t perform that action at this time.
0 commit comments