Sha256: f2e1d12cffd178ad911c197f1b456fe5f653b00d5c91219cba512fe25785bb85
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
require 'test_helper' module Vedeu describe Application do let(:described) { Vedeu::Application } let(:instance) { described.new(configuration) } let(:configuration) { mock('Vedeu::Configuration') } before do configuration.stubs(:drb?).returns(false) Terminal.stubs(:open).returns(['']) end describe '#initialize' do it { instance.must_be_instance_of(described) } it { instance.instance_variable_get('@configuration').must_equal(configuration) } end describe '.start' do subject { described.start(configuration) } it { subject.must_be_instance_of(Array) } context 'alias method: .restart' do it { subject.must_be_instance_of(Array) } end end describe '.stop' do subject { described.stop } it { proc { subject }.must_raise(StopIteration) } end describe '#start' do subject { instance.start } it { subject.must_be_instance_of(Array) } end end # Application end # Vedeu
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.3.4 | test/lib/vedeu/application_test.rb |