spec/api/app_session_spec.rb in rest-assured-1.2.1 vs spec/api/app_session_spec.rb in rest-assured-1.2.2
- old
+ new
@@ -6,10 +6,10 @@
describe AppSession do
it 'starts application in childprocess' do
cmdargs = %w{-d :memory: -p 6666}
Config.stub(:to_cmdargs => cmdargs)
- ChildProcess.should_receive(:build).with('rest-assured', *cmdargs).and_return(child = mock(:io => mock))
+ ChildProcess.should_receive(:build).with('rest-assured', *cmdargs).and_return(child = double(:io => double))
state = ''
child.io.should_receive(:inherit!) do
state.should_not == 'started'
end