Sha256: 30a35435bbcbf003261c1d3c0773f528a10c3c5b413e16034e10ca22a7ce2f6b
Contents?: true
Size: 1001 Bytes
Versions: 6
Compression:
Stored size: 1001 Bytes
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 '.start' do subject { described.start(configuration) } it { subject.must_be_instance_of(Array) } it { described.must_respond_to(:restart) } 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
6 entries across 6 versions & 1 rubygems