Remove context for constructor specs

This commit is contained in:
Thibault Jouan 2015-04-15 09:10:50 +00:00
parent c50345af8b
commit 620150b6d8
2 changed files with 13 additions and 17 deletions

View File

@ -5,10 +5,8 @@ module Uh
let(:display) { Display.new } let(:display) { Display.new }
subject(:manager) { described_class.new events, display } subject(:manager) { described_class.new events, display }
describe '#initialize' do it 'has a new display' do
it 'assigns a new display' do expect(manager.display).to be_a Display
expect(manager.display).to be_a Display
end
end end
describe '#connect', :xvfb do describe '#connect', :xvfb do

View File

@ -13,22 +13,20 @@ module Uh
env.rc_path = 'non_existent_run_control.rb' env.rc_path = 'non_existent_run_control.rb'
end end
describe '#initialize' do it 'has the env' do
it 'assigns the env' do expect(runner.env).to be env
expect(runner.env).to be env end
end
it 'assigns a new Dispatcher' do it 'has a dispatcher' do
expect(runner.events).to be_a Dispatcher expect(runner.events).to be_a Dispatcher
end end
it 'assigns a new Manager' do it 'has a manager' do
expect(runner.manager).to be_a Manager expect(runner.manager).to be_a Manager
end end
it 'is not stopped' do it 'is not stopped' do
expect(runner).not_to be_stopped expect(runner).not_to be_stopped
end
end end
describe '#stopped?' do describe '#stopped?' do