test/lib/vedeu/cursors/cursor_test.rb in vedeu-0.6.7 vs test/lib/vedeu/cursors/cursor_test.rb in vedeu-0.6.8

- old
+ new

@@ -50,11 +50,13 @@ it { subject.must_be_instance_of(described) } it { subject.instance_variable_get('@name').must_equal('silver') } it { subject.instance_variable_get('@ox').must_equal(ox) } it { subject.instance_variable_get('@oy').must_equal(oy) } - it { subject.instance_variable_get('@repository').must_equal(repository) } + it { + subject.instance_variable_get('@repository').must_equal(repository) + } it { subject.instance_variable_get('@visible').must_equal(true) } it { subject.instance_variable_get('@x').must_equal(x) } it { subject.instance_variable_get('@y').must_equal(y) } end @@ -70,20 +72,22 @@ it { instance.must_respond_to(:y=) } end describe '#hide' do let(:visible) { true } - let(:hide_cursor) { Vedeu::Escape.new(value: Vedeu::Esc.hide_cursor) } + let(:hide_cursor) { + Vedeu::Models::Escape.new(value: Vedeu::Esc.hide_cursor) + } before do Vedeu::Output.stubs(:render). with(hide_cursor).returns(hide_cursor) end subject { instance.hide } - it { subject.must_be_instance_of(Vedeu::Escape) } + it { subject.must_be_instance_of(Vedeu::Models::Escape) } end describe '#move_down' do let(:x) { 19 } let(:y) { 8 } @@ -194,19 +198,21 @@ it { subject.must_be_instance_of(Vedeu::Geometry::Position) } end describe '#show' do let(:visible) { false } - let(:show_cursor) { Vedeu::Escape.new(value: Vedeu::Esc.show_cursor) } + let(:show_cursor) { + Vedeu::Models::Escape.new(value: Vedeu::Esc.show_cursor) + } before do Vedeu::Output.stubs(:render). with(show_cursor).returns(show_cursor) end subject { instance.show } - it { subject.must_be_instance_of(Vedeu::Escape) } + it { subject.must_be_instance_of(Vedeu::Models::Escape) } end describe '#reposition' do let(:new_y) { 3 } let(:new_x) { 5 }