spec/lib/plugin/executors/command_executor_spec.rb in fusuma-2.0.2 vs spec/lib/plugin/executors/command_executor_spec.rb in fusuma-2.0.3
- old
+ new
@@ -31,10 +31,10 @@
describe '#execute' do
it 'spawn' do
command = 'echo dummy'
env = {}
- expect(POSIX::Spawn).to receive(:spawn).with(env, command)
+ expect(Process).to receive(:spawn).with(env, command)
expect(Process).to receive(:detach).with(anything)
@executor.execute(@event)
end
end