test/lib/vedeu/dsl/composition_test.rb in vedeu-0.4.13 vs test/lib/vedeu/dsl/composition_test.rb in vedeu-0.4.14
- old
+ new
@@ -37,18 +37,19 @@
let(:filename) {}
let(:object) {}
let(:content) { "Hydrogen\nCarbon\nOxygen\nNitrogen" }
let(:as_lines) {
[
- Vedeu::Line.new({ streams: [Vedeu::Stream.new({ value: 'Hydrogen' })] }),
- Vedeu::Line.new({ streams: [Vedeu::Stream.new({ value: 'Carbon' })] }),
- Vedeu::Line.new({ streams: [Vedeu::Stream.new({ value: 'Oxygen' })] }),
- Vedeu::Line.new({ streams: [Vedeu::Stream.new({ value: 'Nitrogen' })] })
+ Vedeu::Line.new(streams: [Vedeu::Stream.new(value: 'Hydrogen')]),
+ Vedeu::Line.new(streams: [Vedeu::Stream.new(value: 'Carbon')]),
+ Vedeu::Line.new(streams: [Vedeu::Stream.new(value: 'Oxygen')]),
+ Vedeu::Line.new(streams: [Vedeu::Stream.new(value: 'Nitrogen')])
]
}
before do
- Vedeu::Template.expects(:parse).with(object, filename).returns(content)
+ Vedeu::Template.expects(:parse).
+ with(object, filename).returns(content)
end
subject { instance.template_for(_name, filename, object) }
it { subject.must_be_instance_of(Vedeu::Interfaces) }