test/lib/vedeu/output/clear/named_interface_test.rb in vedeu-0.6.14 vs test/lib/vedeu/output/clear/named_interface_test.rb in vedeu-0.6.15
- old
+ new
@@ -27,18 +27,10 @@
}
let(:visible) { true }
let(:geometry) {
Vedeu::Geometry::Geometry.new(name: _name, x: 1, y: 1, xn: 2, yn: 2)
}
-
- before do
- Vedeu.interfaces.stubs(:by_name).returns(interface)
- Vedeu.geometries.stubs(:by_name).returns(geometry)
- end
-
- subject { instance.render }
-
let(:output) {
[
[
Vedeu::Views::Char.new(value: ' ', position: [1, 1]),
Vedeu::Views::Char.new(value: ' ', position: [1, 2]),
@@ -49,9 +41,22 @@
]
]
}
+ before do
+ Vedeu.interfaces.stubs(:by_name).returns(interface)
+ Vedeu.geometries.stubs(:by_name).returns(geometry)
+ Vedeu::Output::Output.stubs(:render).returns(output)
+ end
+
+ subject { instance.render }
+
+ it { subject.must_be_instance_of(Array) }
+ it {
+ Vedeu::Output::Output.expects(:render).with(output)
+ subject
+ }
it { subject.must_equal(output) }
end
end # NamedInterface