mirror of
https://github.com/teampoltergeist/poltergeist.git
synced 2022-11-09 12:05:00 -05:00
12 lines
385 B
Ruby
12 lines
385 B
Ruby
require 'spec_helper'
|
|
|
|
module Capybara::Poltergeist
|
|
describe ServerManager do
|
|
subject { ServerManager.instance }
|
|
|
|
it 'should operate a timeout for waiting for a message' do
|
|
Timeout.should_receive(:timeout).with(ServerManager.timeout).and_raise(Timeout::Error)
|
|
lambda { subject.send(2000, 'omg') }.should raise_error(ServerManager::TimeoutError)
|
|
end
|
|
end
|
|
end
|