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,11 +5,9 @@ module Uh
let(:display) { Display.new }
subject(:manager) { described_class.new events, display }
describe '#initialize' do
it 'assigns a new display' do
it 'has a new display' do
expect(manager.display).to be_a Display
end
end
describe '#connect', :xvfb do
let(:block) { proc { } }

View File

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