Skip to content

Commit 8c74576

Browse files
authored
Merge pull request #174 from tagliala/chore/allow-tests-on-windows
Use `File::NULL` instead of hardcoded `/dev/null`
2 parents c2aa117 + 2db0097 commit 8c74576

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/io_resource_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
let(:file_path) { File.expand_path('files/example.svg', __dir__) }
7070
let(:answer) { File.read(file_path) }
7171
let(:rio) { File.new(file_path, 'r') }
72-
let(:wio) { File.new('/dev/null', 'w') }
72+
let(:wio) { File.new(File::NULL, 'w') }
7373

7474
instance_exec(&tests)
7575
it 'has non empty body' do

0 commit comments

Comments
 (0)