Sha256: 31c0cd0a422870233f84abfd362539f08609101cf7232ce350ca37a06be18e5c

Contents?: true

Size: 602 Bytes

Versions: 1

Compression:

Stored size: 602 Bytes

Contents

require 'test_helper'

module Vedeu

  module Null

    describe Menu do

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

      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

    end # Menu

  end # Null

end # Vedeu

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vedeu-0.6.7 test/lib/vedeu/null/menu_test.rb