Sha256: 9b1d2d4fa54d2f90514621f9ec2eee3e3deb0e7b598100a42a997582d3a24f5e

Contents?: true

Size: 1.43 KB

Versions: 17

Compression:

Stored size: 1.43 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 '#null' do
        it { instance.null.must_be_instance_of(NilClass) }

        it { instance.must_respond_to(:hide) }
        it { instance.must_respond_to(:parent) }
        it { instance.must_respond_to(:show) }
        it { instance.must_respond_to(:toggle) }
        it { instance.must_respond_to(:zindex) }
      end

      describe '#null?' do
        it { instance.null?.must_be_instance_of(TrueClass) }
      end

      describe '#store' do
        it { instance.store.must_be_instance_of(Vedeu::Null::Interface) }
      end

    end # Interface

  end # Null

end # Vedeu

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
vedeu-0.6.6 test/lib/vedeu/null/interface_test.rb
vedeu-0.6.5 test/lib/vedeu/null/interface_test.rb
vedeu-0.6.4 test/lib/vedeu/null/interface_test.rb
vedeu-0.6.3 test/lib/vedeu/null/interface_test.rb
vedeu-0.6.2 test/lib/vedeu/null/interface_test.rb
vedeu-0.6.1 test/lib/vedeu/null/interface_test.rb
vedeu-0.6.0 test/lib/vedeu/null/interface_test.rb
vedeu-0.5.13 test/lib/vedeu/null/interface_test.rb
vedeu-0.5.12 test/lib/vedeu/null/interface_test.rb
vedeu-0.5.11 test/lib/vedeu/null/interface_test.rb
vedeu-0.5.10 test/lib/vedeu/null/interface_test.rb
vedeu-0.5.9 test/lib/vedeu/null/interface_test.rb
vedeu-0.5.8 test/lib/vedeu/null/interface_test.rb
vedeu-0.5.7 test/lib/vedeu/null/interface_test.rb
vedeu-0.5.6 test/lib/vedeu/null/interface_test.rb
vedeu-0.5.5 test/lib/vedeu/null/interface_test.rb
vedeu-0.5.4 test/lib/vedeu/null/interface_test.rb