Sha256: e40adf909615d3c89017b0390b295ccf6e02b4450fe339124459123748b2daa4
Contents?: true
Size: 1.06 KB
Versions: 22
Compression:
Stored size: 1.06 KB
Contents
require 'test_helper' module Vedeu describe Application do let(:described) { Vedeu::Application } let(:instance) { described.new(configuration) } let(:configuration) { Vedeu.configuration } before do configuration.stubs(:drb?).returns(false) Terminal.stubs(:open).returns(['']) end describe '#initialize' do subject { instance } it { subject.must_be_instance_of(described) } it do subject.instance_variable_get('@configuration'). must_equal(configuration) end end describe '.restart' do subject { described.restart(configuration) } it { subject.must_be_instance_of(Array) } end describe '.start' do subject { described.start(configuration) } it { subject.must_be_instance_of(Array) } end describe '.stop' do subject { described.stop } it { subject.must_equal(false) } end describe '#start' do subject { instance.start } it { subject.must_be_instance_of(Array) } end end # Application end # Vedeu
Version data entries
22 entries across 22 versions & 1 rubygems