spec/api/app_session_spec.rb in rest-assured-1.0.0.rc1 vs spec/api/app_session_spec.rb in rest-assured-1.0.0.rc2
- old
+ new
@@ -4,11 +4,11 @@
module RestAssured
describe AppSession do
context 'either without spork or outside prefork block' do
before do
- AppSession.any_instance.stub(:running_in_drb? => false)
+ AppSession.any_instance.stub(:running_in_spork? => false)
end
it 'start application in subprocess' do
state = ''
Utils::Subprocess.should_receive(:new) do |&block|
@@ -24,10 +24,10 @@
end
end
context 'within spork prefork block' do
before do
- AppSession.any_instance.stub(:running_in_drb? => true)
+ AppSession.any_instance.stub(:running_in_spork? => true)
end
it 'starts application in childprocess' do
cmdargs = %w{-d :memory: -p 6666}
Config.stub(:to_cmdargs => cmdargs)