Sha256: c76c9479112a8f8ddadbbd6da8c76f5f5437e935103ff617b092402cfc1ad004
Contents?: true
Size: 1.34 KB
Versions: 1
Compression:
Stored size: 1.34 KB
Contents
require 'test_helper' module Vedeu module Output describe Output do let(:described) { Vedeu::Output::Output } let(:instance) { described.new(output) } let(:output) {} let(:drb) { false } before { Vedeu::Configuration.stubs(:drb?).returns(drb) } describe '#initialize' do it { instance.must_be_instance_of(described) } it { instance.instance_variable_get('@output').must_equal(output) } end describe '.render' do before { Vedeu.renderers.stubs(:render) } subject { described.render(output) } context 'when DRb is enabled' do let(:drb) { true } let(:virtual_buffer) { [] } before do Vedeu::Configuration.stubs(:drb?).returns(drb) # Vedeu::Renderers::HTML.stubs(:to_file) # Vedeu::Buffers::VirtualBuffers.stubs(:retrieve).returns(virtual_buffer) end it { Vedeu.expects(:trigger).with(:_drb_store_output_, output) subject } # it 'writes the virtual buffer to a file' do # Vedeu::Renderers::HTML.expects(:to_file).with(virtual_buffer) # subject # end end it { Vedeu.renderers.expects(:render).with(output); subject } end end # Output end # Output end # Vedeu
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.6.9 | test/lib/vedeu/output/output_test.rb |