test/lib/vedeu/null/generic_test.rb in vedeu-0.6.6 vs test/lib/vedeu/null/generic_test.rb in vedeu-0.6.7

- old
+ new

@@ -14,10 +14,12 @@ } } let(:_name) { 'null_generic' } describe 'alias methods' do + it { instance.must_respond_to(:name) } + it { instance.must_respond_to(:attributes) } it { instance.must_respond_to(:visible?) } end describe '#initialize' do it { instance.must_be_instance_of(described) } @@ -29,13 +31,28 @@ describe '#null' do subject { instance.null } it { subject.must_be_instance_of(NilClass) } it { instance.must_respond_to(:add) } + it { instance.must_respond_to(:bottom_item) } it { instance.must_respond_to(:colour) } + it { instance.must_respond_to(:current_item) } + it { instance.must_respond_to(:deselect_item) } + it { instance.must_respond_to(:hide) } + it { instance.must_respond_to(:item) } + it { instance.must_respond_to(:items) } + it { instance.must_respond_to(:next_item) } it { instance.must_respond_to(:parent) } + it { instance.must_respond_to(:prev_item) } + it { instance.must_respond_to(:select_item) } + it { instance.must_respond_to(:selected_item) } + it { instance.must_respond_to(:show) } it { instance.must_respond_to(:style) } + it { instance.must_respond_to(:toggle) } + it { instance.must_respond_to(:top_item) } + it { instance.must_respond_to(:view) } + it { instance.must_respond_to(:zindex) } end describe '#null?' do subject { instance.null? } @@ -50,9 +67,10 @@ describe '#visible' do subject { instance.visible } it { subject.must_be_instance_of(FalseClass) } + it { instance.must_respond_to(:visible?) } end describe '#visible=' do let(:_value) { :ignored }