Sha256: 25647764a181216e779dac1784811ae40e760b0c561b155e9bc05ed36bd2624b
Contents?: true
Size: 868 Bytes
Versions: 2
Compression:
Stored size: 868 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) } it { instance.instance_variable_get('@object').must_be_instance_of(Vedeu::HTMLRenderer) } end describe '#render' do subject { instance.render } it { subject.must_be_instance_of(String) } end describe '#to_file' do let(:path) {} subject { instance.to_file(path) } context 'when a path is given' do let(:path) { '/tmp/test_vedeu_html_renderer.html' } end context 'when a path is not given' do end end end # HTMLRenderer end # Vedeu
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.4.1 | test/lib/vedeu/output/html_renderer_test.rb |
vedeu-0.4.0 | test/lib/vedeu/output/html_renderer_test.rb |