Sha256: d905c474f533c7faf820c278e31f564fee43fe6be3c827203bc3c7ba9e035f83

Contents?: true

Size: 1.4 KB

Versions: 31

Compression:

Stored size: 1.4 KB

Contents

require 'test_helper'

module Vedeu

  module Null

    describe Generic do

      let(:described) { Vedeu::Null::Generic }
      let(:instance)  { described.new }

      describe 'alias methods' do
        it { instance.must_respond_to(:visible?) }
      end

      describe '#initialize' do
        it { instance.must_be_instance_of(described) }
      end

      describe '#add' do
        subject { instance.add }

        it { subject.must_be_instance_of(NilClass) }
      end

      describe '#colour' do
        subject { instance.colour }

        it { subject.must_be_instance_of(NilClass) }
      end

      describe '#parent' do
        subject { instance.parent }

        it { subject.must_be_instance_of(NilClass) }
      end

      describe '#store' do
        subject { instance.store }

        it { subject.must_be_instance_of(described) }
      end

      describe '#style' do
        subject { instance.style }

        it { subject.must_be_instance_of(NilClass) }
      end

      describe '#visible' do
        subject { instance.visible }

        it { subject.must_be_instance_of(FalseClass) }
      end

      describe '#visible=' do
        let(:_value) { :ignored }

        subject { instance.visible = (_value) }

        # This should be FalseClass, I'm explicitly returning false in the method.
        it { subject.must_be_instance_of(Symbol) }
      end

    end # Generic

  end # Null

end # Vedeu

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
vedeu-0.4.48 test/lib/vedeu/null/generic_test.rb
vedeu-0.4.47 test/lib/vedeu/null/generic_test.rb
vedeu-0.4.46 test/lib/vedeu/null/generic_test.rb
vedeu-0.4.45 test/lib/vedeu/null/generic_test.rb
vedeu-0.4.44 test/lib/vedeu/null/generic_test.rb
vedeu-0.4.43 test/lib/vedeu/null/generic_test.rb
vedeu-0.4.42 test/lib/vedeu/null/generic_test.rb
vedeu-0.4.41 test/lib/vedeu/null/generic_test.rb
vedeu-0.4.40 test/lib/vedeu/null/generic_test.rb
vedeu-0.4.39 test/lib/vedeu/null/generic_test.rb
vedeu-0.4.38 test/lib/vedeu/null/generic_test.rb
vedeu-0.4.37 test/lib/vedeu/null/generic_test.rb
vedeu-0.4.36 test/lib/vedeu/null/generic_test.rb
vedeu-0.4.35 test/lib/vedeu/null/generic_test.rb
vedeu-0.4.34 test/lib/vedeu/null/generic_test.rb
vedeu-0.4.33 test/lib/vedeu/null/generic_test.rb
vedeu-0.4.32 test/lib/vedeu/null/generic_test.rb
vedeu-0.4.31 test/lib/vedeu/null/generic_test.rb
vedeu-0.4.30 test/lib/vedeu/null/generic_test.rb
vedeu-0.4.29 test/lib/vedeu/null/generic_test.rb