spec/arachni/session_spec.rb in arachni-1.0.6 vs spec/arachni/session_spec.rb in arachni-1.1

- old
+ new

@@ -80,11 +80,11 @@ configured.login configured.should be_logged_in browser = configured.browser configured.clean_up - browser.pid.should be_nil + browser.should be_nil end it 'clears the #configuration' do configured.should be_configured configured.clean_up @@ -98,13 +98,13 @@ configured.browser.should be_nil end end context 'after #login' do - it "returns an #{Arachni::Browser}" do + it 'kills the browser' do configured.login - configured.browser.should be_kind_of Arachni::Browser + configured.browser.should be_nil end end end describe '#login' do @@ -205,20 +205,9 @@ end context 'when no configuration has been provided' do it "raises #{described_class::Error::NotConfigured}" do expect { subject.login }.to raise_error described_class::Error::NotConfigured - end - end - - context 'each time' do - it 'uses a fresh #browser' do - configured.login - browser = configured.browser - - configured.login - configured.browser.object_id.should_not == browser.object_id - configured.browser.should be_kind_of Arachni::Browser end end end describe '#logged_in?' do