test/lib/vedeu/cursor/refresh_cursor_test.rb in vedeu-0.5.6 vs test/lib/vedeu/cursor/refresh_cursor_test.rb in vedeu-0.5.7
- old
+ new
@@ -15,20 +15,20 @@
it { instance.must_be_instance_of(described) }
it { instance.instance_variable_get('@name').must_equal(_name) }
end
describe '.render' do
- before {
+ before do
Vedeu.geometry 'refresh_cursor' do
x 1
xn 3
y 1
yn 3
end
Vedeu::Cursor.new(name: 'refresh_cursor', ox: ox, oy: oy).store
Vedeu::Terminal.stubs(:output).returns(expected)
- }
+ end
subject { described.render(_name) }
it 'renders the cursor in the terminal' do
Vedeu::Terminal.expects(:output).with("\e[1;1H\e[?25l")