Sha256: 7902895431e5acee1eff7876c0883198714aaf27c63864a07cc7f617bf159a44

Contents?: true

Size: 1.22 KB

Versions: 18

Compression:

Stored size: 1.22 KB

Contents

require 'test_helper'

module Vedeu

  module Null

  	describe Menu do

      let(:described)  { Vedeu::Null::Menu }
      let(:instance)   { described.new(attributes) }
      let(:attributes) {
        {
          name: _name
        }
      }
      let(:_name) { 'null_geometry' }

      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 'alias methods' do
        it { instance.must_respond_to(:bottom_item) }
        it { instance.must_respond_to(:current_item) }
        it { instance.must_respond_to(:deselect_item) }
        it { instance.must_respond_to(:items) }
        it { instance.must_respond_to(:next_item) }
        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(:top_item) }
        it { instance.must_respond_to(:view) }
      end

      describe '#item' do
        it { instance.item.must_equal(nil) }
      end

  	end # Menu

  end # Null

end # Vedeu

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
vedeu-0.5.11 test/lib/vedeu/null/menu_test.rb
vedeu-0.5.10 test/lib/vedeu/null/menu_test.rb
vedeu-0.5.9 test/lib/vedeu/null/menu_test.rb
vedeu-0.5.8 test/lib/vedeu/null/menu_test.rb
vedeu-0.5.7 test/lib/vedeu/null/menu_test.rb
vedeu-0.5.6 test/lib/vedeu/null/menu_test.rb
vedeu-0.5.5 test/lib/vedeu/null/menu_test.rb
vedeu-0.5.4 test/lib/vedeu/null/menu_test.rb
vedeu-0.5.3 test/lib/vedeu/null/menu_test.rb
vedeu-0.5.2 test/lib/vedeu/null/menu_test.rb
vedeu-0.5.1 test/lib/vedeu/null/menu_test.rb
vedeu-0.5.0 test/lib/vedeu/null/menu_test.rb
vedeu-0.4.65 test/lib/vedeu/null/menu_test.rb
vedeu-0.4.64 test/lib/vedeu/null/menu_test.rb
vedeu-0.4.63 test/lib/vedeu/null/menu_test.rb
vedeu-0.4.62 test/lib/vedeu/null/menu_test.rb
vedeu-0.4.61 test/lib/vedeu/null/menu_test.rb
vedeu-0.4.60 test/lib/vedeu/null/menu_test.rb