test/lib/vedeu/null/geometry_test.rb in vedeu-0.5.0 vs test/lib/vedeu/null/geometry_test.rb in vedeu-0.5.1
- old
+ new
@@ -13,13 +13,10 @@
name: _name
}
}
let(:_name) { 'null_geometry' }
- before do
- Vedeu::Terminal.stubs(:height).returns(25)
- Vedeu::Terminal.stubs(:width).returns(40)
- end
+ before { Vedeu::Terminal.stubs(:size).returns([25, 40]) }
describe '#initialize' do
it { instance.must_be_instance_of(described) }
it {
instance.instance_variable_get('@attributes').must_equal(attributes)