test/lib/vedeu/output/renderers/terminal_test.rb in vedeu-0.4.50 vs test/lib/vedeu/output/renderers/terminal_test.rb in vedeu-0.4.51

- old
+ new

@@ -5,19 +5,20 @@ module Renderers describe Terminal do let(:described) { Vedeu::Renderers::Terminal } - let(:instance) { described.new(output) } + let(:instance) { described.new(options) } + let(:options) { {} } let(:output) {} describe '#initialize' do it { instance.must_be_instance_of(described) } - it { instance.instance_variable_get('@output').must_equal([output]) } + it { instance.instance_variable_get('@options').must_equal(options) } end - describe '.render' do - subject { described.render } + describe '#render' do + subject { instance.render(output) } it { subject.must_be_instance_of(Array) } end end # Terminal