spec/session_helpers_spec.rb in net-ssh-session-0.1.5 vs spec/session_helpers_spec.rb in net-ssh-session-0.1.6
- old
+ new
@@ -135,14 +135,14 @@
let(:worker) do
proc { sleep 1 }
end
it 'raises timeout error if exceded' do
- expect { session.with_timeout(0.5, &worker) }.to raise_error Timeout::Error
+ expect { session.with_timeout(0.5, &worker) }.to raise_error
end
it 'runs normally' do
- expect { session.with_timeout(2, &worker) }.not_to raise_error Timeout::Error
+ expect { session.with_timeout(2, &worker) }.not_to raise_error
end
end
describe '#has_user?' do
before do
\ No newline at end of file