Sha256: ae19420a59730f06bb8028023faff1f3136ff56eec13e7cc8328f676da5fdfd3

Contents?: true

Size: 860 Bytes

Versions: 4

Compression:

Stored size: 860 Bytes

Contents

require 'test_helper'

module Vedeu

  describe HTMLRenderer do

    let(:described) { Vedeu::HTMLRenderer }
    let(:instance)  { described.new(output) }
    let(:output)    {}

    describe '#initialize' do
      it { instance.must_be_instance_of(Vedeu::HTMLRenderer) }
      it { instance.instance_variable_get('@output').must_equal(output) }
    end

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

      it { subject.must_be_instance_of(String) }
    end

    describe '.to_file' do
      before { File.stubs(:open) }

      subject { described.to_file(output, path) }

      context 'when a path is given' do
        let(:path) { '/tmp/test_vedeu_html_renderer.html' }

        #it { subject.must_equal('') }
      end

      context 'when a path is not given' do
        let(:path) {}


      end
    end

  end # HTMLRenderer

end # Vedeu

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vedeu-0.4.9 test/lib/vedeu/output/html_renderer_test.rb
vedeu-0.4.8 test/lib/vedeu/output/html_renderer_test.rb
vedeu-0.4.7 test/lib/vedeu/output/html_renderer_test.rb
vedeu-0.4.6 test/lib/vedeu/output/html_renderer_test.rb