Fail when another window manager is already running

This commit is contained in:
Thibault Jouan
2015-04-12 23:46:34 +00:00
parent c3e1f9639a
commit 10591d0646
8 changed files with 47 additions and 10 deletions

View File

@@ -11,14 +11,11 @@ module Uh
end
end
describe '#connect' do
describe '#connect', :xvfb do
let(:block) { proc { } }
# Prevent Manager to open a real display.
before { allow(display).to receive :open }
it 'opens the display' do
expect(manager.display).to receive :open
expect(manager.display).to receive(:open).and_call_original
manager.connect
end