Sha256: 4dc8fa0f320c26bdafd6d32db1df841273c143819496d13da6a2b7b3837c2bb9
Contents?: true
Size: 1.7 KB
Versions: 1
Compression:
Stored size: 1.7 KB
Contents
require 'test_helper' module Vedeu module Null describe Interface do let(:described) { Vedeu::Null::Interface } let(:instance) { described.new(_name) } let(:_name) {} describe '#initialize' do it { instance.must_be_instance_of(described) } it { instance.instance_variable_get('@name').must_equal(_name) } end describe 'accessors' do it { instance.must_respond_to(:name) } end describe '#attributes' do subject { instance.attributes } it { subject.must_be_instance_of(Hash) } end describe '#hide' do subject { instance.hide } it { subject.must_be_instance_of(NilClass) } end describe '#null?' do subject { instance.null? } it { subject.must_be_instance_of(TrueClass) } end describe '#parent' do subject { instance.parent } it { subject.must_be_instance_of(NilClass) } end describe '#show' do subject { instance.show } it { subject.must_be_instance_of(NilClass) } end describe '#store' do subject { instance.store } it { subject.must_be_instance_of(Vedeu::Null::Interface) } end describe '#toggle' do subject { instance.toggle } it { subject.must_be_instance_of(NilClass) } end describe '#visible?' do subject { instance.visible? } it { subject.must_be_instance_of(FalseClass) } end describe '#visible=' do subject { instance.visible=(:irrelevant) } # @todo # it { skip } # it { subject.must_be_instance_of(FalseClass) } end end # Interface end # Null end # Vedeu
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.4.54 | test/lib/vedeu/null/interface_test.rb |