Sha256: 9a62b68e70841c38105b2f4f6d87f8abdc1c20343b15c214e2eea34e3b5fd259

Contents?: true

Size: 978 Bytes

Versions: 14

Compression:

Stored size: 978 Bytes

Contents

require 'test_helper'

module Vedeu

  module Null

    describe Interface do

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

      describe '#initialize' do
        it { instance.must_be_instance_of(described) }
        it { instance.instance_variable_get('@name').must_equal(_name) }
      end

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

        it { subject.must_be_instance_of(Hash) }
      end

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

        it { subject.must_be_instance_of(Vedeu::Null::Interface) }
      end

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

        it { subject.must_be_instance_of(FalseClass) }
      end

      describe '#visible=' do
        subject { instance.visible=(:irrelevant) }

        # it { subject.must_be_instance_of(FalseClass) }
      end

    end # Interface

  end # Null

end # Vedeu

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
vedeu-0.4.35 test/lib/vedeu/null/interface_test.rb
vedeu-0.4.34 test/lib/vedeu/null/interface_test.rb
vedeu-0.4.33 test/lib/vedeu/null/interface_test.rb
vedeu-0.4.32 test/lib/vedeu/null/interface_test.rb
vedeu-0.4.31 test/lib/vedeu/null/interface_test.rb
vedeu-0.4.30 test/lib/vedeu/null/interface_test.rb
vedeu-0.4.29 test/lib/vedeu/null/interface_test.rb
vedeu-0.4.28 test/lib/vedeu/null/interface_test.rb
vedeu-0.4.27 test/lib/vedeu/null/interface_test.rb
vedeu-0.4.26 test/lib/vedeu/null/interface_test.rb
vedeu-0.4.25 test/lib/vedeu/null/interface_test.rb
vedeu-0.4.24 test/lib/vedeu/null/interface_test.rb
vedeu-0.4.23 test/lib/vedeu/null/interface_test.rb
vedeu-0.4.22 test/lib/vedeu/null/interface_test.rb