test/lib/vedeu/cursor/cursor_test.rb in vedeu-0.4.33 vs test/lib/vedeu/cursor/cursor_test.rb in vedeu-0.4.34

- old
+ new

@@ -37,10 +37,43 @@ it { subject.instance_variable_get('@visible').must_equal(true) } it { subject.instance_variable_get('@x').must_equal(19) } it { subject.instance_variable_get('@y').must_equal(8) } end + describe '#attributes' do + it { instance.must_respond_to(:attributes) } + end + + describe '#name' do + it { instance.must_respond_to(:name) } + end + + describe '#ox' do + it { instance.must_respond_to(:ox) } + end + + describe '#oy' do + it { instance.must_respond_to(:oy) } + end + + describe '#state' do + it { instance.must_respond_to(:state) } + end + + describe '#visible' do + it { instance.must_respond_to(:visible) } + it { instance.must_respond_to(:visible?) } + end + + describe '#x' do + it { instance.must_respond_to(:x) } + end + + describe '#y' do + it { instance.must_respond_to(:y) } + end + describe '#hide_cursor' do subject { instance.hide_cursor } it { subject.must_be_instance_of(Vedeu::EscapeChar) } it { subject.to_s.must_equal("\e[?25l") } @@ -65,9 +98,10 @@ describe '#to_s' do let(:visible) { true } subject { instance.to_s } + it { instance.must_respond_to(:to_str) } it { subject.must_be_instance_of(String) } context 'when the cursor is visible' do it 'returns an visible cursor escape sequence with position' do subject.must_equal("\e[8;19H\e[?25h")