Sha256: 6e4e11deab2d5b48a025d66a9b05144dcba6a90782044bfbb5cbcacd9c6ed72a

Contents?: true

Size: 711 Bytes

Versions: 3

Compression:

Stored size: 711 Bytes

Contents

require_relative '../../test_helper'

module Vedeu
  describe Application do
    let(:described_class)    { Application }
    let(:described_instance) { described_class.new(options) }
    let(:options)            { {} }

    it 'returns an Application instance' do
      described_instance.must_be_instance_of(Application)
    end

    describe '.start' do
      let(:subject) { described_class.start(options) }

      before do
        Terminal.stubs(:open).yields(self)
        InterfaceRepository.stubs(:initial_state)
        EventLoop.stubs(:main_sequence)
        Terminal.stubs(:close)
      end

      it 'returns a NilClass' do
        subject.must_be_instance_of(NilClass)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vedeu-0.0.17 test/lib/vedeu/application_test.rb
vedeu-0.0.16 test/lib/vedeu/application_test.rb
vedeu-0.0.15 test/lib/vedeu/application_test.rb