Sha256: a8b9bab8ea94320289d6327e6e1b3595275f84809794801bb11976d4d81b2ca6

Contents?: true

Size: 1.34 KB

Versions: 15

Compression:

Stored size: 1.34 KB

Contents

require 'test_helper'

module Vedeu

  module Null

    describe Buffer do

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

      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 '#clear' do
        subject { instance.clear }

        it { subject.must_be_instance_of(NilClass) }
      end

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

        it { subject.must_be_instance_of(NilClass) }
      end

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

        it { subject.must_be_instance_of(TrueClass) }
      end

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

        it { subject.must_be_instance_of(NilClass) }
      end

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

        it { subject.must_be_instance_of(NilClass) }
      end

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

        it { subject.must_be_instance_of(NilClass) }
      end

    end # Buffer

  end # Null

end # Vedeu

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
vedeu-0.5.3 test/lib/vedeu/null/buffer_test.rb
vedeu-0.5.2 test/lib/vedeu/null/buffer_test.rb
vedeu-0.5.1 test/lib/vedeu/null/buffer_test.rb
vedeu-0.5.0 test/lib/vedeu/null/buffer_test.rb
vedeu-0.4.65 test/lib/vedeu/null/buffer_test.rb
vedeu-0.4.64 test/lib/vedeu/null/buffer_test.rb
vedeu-0.4.63 test/lib/vedeu/null/buffer_test.rb
vedeu-0.4.62 test/lib/vedeu/null/buffer_test.rb
vedeu-0.4.61 test/lib/vedeu/null/buffer_test.rb
vedeu-0.4.60 test/lib/vedeu/null/buffer_test.rb
vedeu-0.4.59 test/lib/vedeu/null/buffer_test.rb
vedeu-0.4.58 test/lib/vedeu/null/buffer_test.rb
vedeu-0.4.57 test/lib/vedeu/null/buffer_test.rb
vedeu-0.4.56 test/lib/vedeu/null/buffer_test.rb
vedeu-0.4.55 test/lib/vedeu/null/buffer_test.rb