spec/fusuma/plugin/plugin/executors/wmctrl_executor_spec.rb in fusuma-plugin-wmctrl-0.4.2 vs spec/fusuma/plugin/plugin/executors/wmctrl_executor_spec.rb in fusuma-plugin-wmctrl-0.4.3
- old
+ new
@@ -38,10 +38,10 @@
end
describe '#execute' do
it 'detach' do
pid = rand(20)
- allow(POSIX::Spawn)
+ allow(Process)
.to receive(:spawn).with(@executor.search_command(@event))
.and_return pid
expect(Process).to receive(:detach).with(pid)