Sha256: 28d54f5c4903224ffaece95b956a1274f320cb1e34df071adf4e1be90b99aad7

Contents?: true

Size: 768 Bytes

Versions: 30

Compression:

Stored size: 768 Bytes

Contents

require 'test_helper'

module Vedeu

  module Renderers

    describe Null do

      let(:described) { Vedeu::Renderers::Null }
      let(:instance)  { described.new(options) }
      let(:options)   { {} }
      let(:output)    {}

      describe '#initialize' do
        it { instance.must_be_instance_of(Vedeu::Renderers::Null) }
        it { instance.instance_variable_get('@options').must_equal(options) }
      end

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

        it { subject.must_be_instance_of(String) }
        it { subject.must_equal('') }
      end

      describe '#render' do
        subject { instance.render(output) }

        it { subject.must_be_instance_of(NilClass) }
      end

    end # Null

  end # Renderers

end # Vedeu

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
vedeu-0.6.42 test/lib/vedeu/output/renderers/null_test.rb
vedeu-0.6.41 test/lib/vedeu/output/renderers/null_test.rb
vedeu-0.6.40 test/lib/vedeu/output/renderers/null_test.rb
vedeu-0.6.39 test/lib/vedeu/output/renderers/null_test.rb
vedeu-0.6.38 test/lib/vedeu/output/renderers/null_test.rb
vedeu-0.6.37 test/lib/vedeu/output/renderers/null_test.rb
vedeu-0.6.36 test/lib/vedeu/output/renderers/null_test.rb
vedeu-0.6.35 test/lib/vedeu/output/renderers/null_test.rb
vedeu-0.6.34 test/lib/vedeu/output/renderers/null_test.rb
vedeu-0.6.33 test/lib/vedeu/output/renderers/null_test.rb
vedeu-0.6.32 test/lib/vedeu/output/renderers/null_test.rb
vedeu-0.6.31 test/lib/vedeu/output/renderers/null_test.rb
vedeu-0.6.30 test/lib/vedeu/output/renderers/null_test.rb
vedeu-0.6.29 test/lib/vedeu/output/renderers/null_test.rb
vedeu-0.6.28 test/lib/vedeu/output/renderers/null_test.rb
vedeu-0.6.27 test/lib/vedeu/output/renderers/null_test.rb
vedeu-0.6.26 test/lib/vedeu/output/renderers/null_test.rb
vedeu-0.6.25 test/lib/vedeu/output/renderers/null_test.rb
vedeu-0.6.24 test/lib/vedeu/output/renderers/null_test.rb
vedeu-0.6.23 test/lib/vedeu/output/renderers/null_test.rb