spec/lib/device_spec.rb in fusuma-2.0.2 vs spec/lib/device_spec.rb in fusuma-2.0.3
- old
+ new
@@ -22,14 +22,12 @@
allow_any_instance_of(LibinputCommand)
.to receive(:list_devices_command)
.and_return(libinput_device_command)
@dummy_io = StringIO.new('dummy')
- allow(Process).to receive(:waitpid).and_return(nil)
-
- allow(POSIX::Spawn).to receive(:popen4)
+ allow(Open3).to receive(:popen3)
.with(libinput_device_command)
- .and_return([nil, @dummy_io, list_devices_output, @dummy_io])
+ .and_return([@dummy_io, list_devices_output, @dummy_io, nil])
end
context 'with XPS-9360 (have a correct device)' do
let(:list_devices_output) do
File.open('./spec/lib/libinput-list-devices_iberianpig-XPS-9360.txt')