diff --git a/spec/io_resource_spec.rb b/spec/io_resource_spec.rb index 2825981..4e2fd5d 100644 --- a/spec/io_resource_spec.rb +++ b/spec/io_resource_spec.rb @@ -69,7 +69,7 @@ let(:file_path) { File.expand_path('files/example.svg', __dir__) } let(:answer) { File.read(file_path) } let(:rio) { File.new(file_path, 'r') } - let(:wio) { File.new('/dev/null', 'w') } + let(:wio) { File.new(File::NULL, 'w') } instance_exec(&tests) it 'has non empty body' do