Sha256: 80cf3b33e462504d446e0871bbcf8a0fb3c3e23559067fba1c61f2ae0d008a15
Contents?: true
Size: 1.82 KB
Versions: 2
Compression:
Stored size: 1.82 KB
Contents
require 'test_helper' module Vedeu module Null describe Interface do let(:described) { Vedeu::Null::Interface } let(:instance) { described.new(attributes) } let(:attributes){ { name: _name } } let(:_name) { 'null_interface' } describe '#initialize' do it { instance.must_be_instance_of(described) } it { instance.instance_variable_get('@attributes').must_equal(attributes) } it { instance.instance_variable_get('@name').must_equal(_name) } end describe 'accessors' do it { instance.must_respond_to(:name) } it { instance.must_respond_to(:attributes) } 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.4.56 | test/lib/vedeu/null/interface_test.rb |
vedeu-0.4.55 | test/lib/vedeu/null/interface_test.rb |