Sha256: 80d7e5fd1d8a6b0a6f6388e4e904e61fa00eec2e69ccdfff83ceb5f2cd19a823
Contents?: true
Size: 1.48 KB
Versions: 11
Compression:
Stored size: 1.48 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) } it { instance.must_respond_to(:visible) } it { instance.must_respond_to(:visible=) } it { instance.must_respond_to(:visible?) } end describe '#hide' do it { instance.hide.must_be_instance_of(NilClass) } end describe '#null?' do it { instance.null?.must_be_instance_of(TrueClass) } end describe '#parent' do it { instance.parent.must_be_instance_of(NilClass) } end describe '#show' do it { instance.show.must_be_instance_of(NilClass) } end describe '#store' do it { instance.store.must_be_instance_of(Vedeu::Null::Interface) } end describe '#toggle' do it { instance.toggle.must_be_instance_of(NilClass) } end end # Interface end # Null end # Vedeu
Version data entries
11 entries across 11 versions & 1 rubygems