Sha256: 458bf5294aeb1d29b724a6dc81c5bece54040201c7ff3a7a2eccf76a54ed0e54
Contents?: true
Size: 1.18 KB
Versions: 10
Compression:
Stored size: 1.18 KB
Contents
require 'test_helper' module Vedeu module Runtime describe Application do let(:described) { Vedeu::Runtime::Application } let(:instance) { described.new(configuration) } let(:configuration) { Vedeu.configuration } before do configuration.stubs(:drb?).returns(false) Vedeu::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 # Runtime end # Vedeu
Version data entries
10 entries across 10 versions & 1 rubygems