File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 55
66 let ( :expect_flags ) { File ::WRONLY | File ::APPEND }
77
8+
89 # Don't pollute the log output
910 before ( :all ) { $skip_logging = true }
1011 after ( :all ) { $skip_logging = false }
4647 expect ( File . exist? ( tmp_path ) ) . to be_truthy
4748 expect ( @before ) . to_not eq ( File . stat ( tmp_path ) . inspect )
4849 expect ( @fp . stat . inspect ) . to eq ( File . stat ( tmp_path ) . inspect )
50+ pending ( "ruby 3.4 reopen resets the encoding to nil!" ) if "3.4.0" <= RUBY_VERSION
4951 expect ( @ext ) . to eq ( ( @fp . external_encoding rescue nil ) )
5052 expect ( @int ) . to eq ( ( @fp . internal_encoding rescue nil ) )
5153 expect ( expect_flags ) . to eq ( ( expect_flags & @fp . fcntl ( Fcntl ::F_GETFL ) ) )
7880 expect ( @tmp_path ) . to eq ( fp . path )
7981 expect ( File . exist? ( @tmp_path ) ) . to be_truthy
8082 expect ( fp . stat . inspect ) . to eq ( File . stat ( @tmp_path ) . inspect )
83+ pending ( "ruby 3.4 reopen resets the encoding to nil!" ) if "3.4.0" <= RUBY_VERSION
8184 expect ( encoding ) . to eq ( fp . external_encoding )
8285 expect ( fp . internal_encoding ) . to be_nil
8386 expect ( expect_flags ) . to eq ( ( expect_flags & fp . fcntl ( Fcntl ::F_GETFL ) ) )
106109 expect ( @tmp_path ) . to eq ( fp . path )
107110 expect ( File . exist? ( @tmp_path ) ) . to be_truthy
108111 expect ( fp . stat . inspect ) . to eq ( File . stat ( @tmp_path ) . inspect )
112+ pending ( "ruby 3.4 reopen resets the encoding to nil!" ) if "3.4.0" <= RUBY_VERSION
109113 expect ( ext ) . to eq ( fp . external_encoding )
110114
111115 if ext != Encoding ::BINARY
You can’t perform that action at this time.
0 commit comments