test/lib/vedeu/dsl/geometry_test.rb in vedeu-0.6.1 vs test/lib/vedeu/dsl/geometry_test.rb in vedeu-0.6.2

- old
+ new

@@ -21,10 +21,11 @@ describe '#centred' do subject { instance.centred(true) } it { instance.must_respond_to(:centred!) } + it { instance.must_respond_to(:centred=) } it 'sets the attribute to the value' do subject.must_equal(true) end @@ -74,10 +75,12 @@ end describe '#height' do subject { instance.height(6) } + it { instance.must_respond_to(:height=) } + it 'sets the attribute to the value' do subject.call.must_equal(6) end context 'DSL #height' do @@ -135,10 +138,12 @@ end describe '#width' do subject { instance.width(25) } + it { instance.must_respond_to(:width=) } + it 'sets the attribute to the value' do subject.call.must_equal(25) end context 'DSL #width' do @@ -157,10 +162,12 @@ end describe '#x' do subject { instance.x(2) } + it { instance.must_respond_to(:x=) } + it 'sets the attribute to the value' do subject.must_equal(2) end context 'when a block is given' do @@ -213,10 +220,12 @@ end describe '#y' do subject { instance.y(5) } + it { instance.must_respond_to(:y=) } + it 'sets the attribute to the value' do subject.must_equal(5) end context 'when a block is given' do @@ -269,10 +278,11 @@ end describe '#xn' do subject { instance.xn(15) } + it { instance.must_respond_to(:xn=) } it { subject.must_equal(15) } context 'when a block is given' do subject { Vedeu::Geometry.build({}) do @@ -287,9 +297,10 @@ end describe '#yn' do subject { instance.yn(8) } + it { instance.must_respond_to(:yn=) } it { subject.must_equal(8) } context 'when a block is given' do subject { Vedeu::Geometry.build({}) do