Sha256: 9b5a6063e95e3cb7fd513f37dd2e8a9ace0196a1d6d24abf06b1c64d5020e445
Contents?: true
Size: 1.06 KB
Versions: 15
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(['']) Vedeu.stubs(:trigger) end describe '#initialize' do it { instance.must_be_instance_of(described) } it do instance.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
15 entries across 15 versions & 1 rubygems