test/lib/vedeu/geometry/geometry_test.rb in vedeu-0.4.41 vs test/lib/vedeu/geometry/geometry_test.rb in vedeu-0.4.42
- old
+ new
@@ -31,24 +31,25 @@
let(:yn) {}
before { Terminal.stubs(:size).returns([12, 40]) }
describe '#initialize' do
- subject { instance }
-
- it { subject.must_be_instance_of(described) }
- it { subject.instance_variable_get('@attributes').must_equal(attributes) }
- it { subject.instance_variable_get('@centred').must_equal(centred) }
- it { subject.instance_variable_get('@height').must_equal(height) }
- it { subject.instance_variable_get('@maximised').must_equal(maximised) }
- it { subject.instance_variable_get('@name').must_equal(_name) }
- it { subject.instance_variable_get('@width').must_equal(width) }
- it { subject.instance_variable_get('@x').must_equal(x) }
- it { subject.instance_variable_get('@xn').must_equal(xn) }
- it { subject.instance_variable_get('@y').must_equal(y) }
- it { subject.instance_variable_get('@yn').must_equal(yn) }
+ it { instance.must_be_instance_of(described) }
+ it {
+ instance.instance_variable_get('@attributes').must_equal(attributes)
+ }
+ it { instance.instance_variable_get('@centred').must_equal(centred) }
+ it { instance.instance_variable_get('@height').must_equal(height) }
+ it { instance.instance_variable_get('@maximised').must_equal(maximised) }
+ it { instance.instance_variable_get('@name').must_equal(_name) }
+ it { instance.instance_variable_get('@width').must_equal(width) }
+ it { instance.instance_variable_get('@x').must_equal(x) }
+ it { instance.instance_variable_get('@xn').must_equal(xn) }
+ it { instance.instance_variable_get('@y').must_equal(y) }
+ it { instance.instance_variable_get('@yn').must_equal(yn) }
it do
- subject.instance_variable_get('@repository').must_equal(Vedeu.geometries)
+ instance.instance_variable_get('@repository').
+ must_equal(Vedeu.geometries)
end
end
describe 'accessors' do
it { instance.must_respond_to(:centred) }