Sha256: 0a650662a420e5a9944ae13adc2cab3803fd49f3a1027a0b0f8e1e1aa95f4096

Contents?: true

Size: 707 Bytes

Versions: 1

Compression:

Stored size: 707 Bytes

Contents

require 'test_helper'

module Vedeu

  describe Application do

    let(:described) { Application.new }

    before { Terminal.stubs(:open).returns(['']) }

    describe '.start' do
      it { return_type_for(Application.start, Array) }

      context 'alias method: .restart' do
        it { return_type_for(Application.restart, Array) }
      end
    end

    describe '.stop' do
      it 'raises an exception' do
        proc { Application.stop }.must_raise(StopIteration)
      end
    end

    describe '#initialize' do
      it { return_type_for(described, Application) }
    end

    describe '#start' do
      it { return_type_for(described.start, Array) }
    end

  end # Application

end # Vedeu

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vedeu-0.2.12 test/lib/vedeu/application_test.rb