spec/ruco/application_spec.rb in ruco-0.0.20 vs spec/ruco/application_spec.rb in ruco-0.0.21

- old
+ new

@@ -45,9 +45,15 @@ app.key(:enter) app.view.should == "#{status}123\n456\n789\n#{command}" app.cursor.should == [2,0] # 0 offset + 1 for statusbar end + it "can resize" do + write("01234567\n1\n2\n3\n4\n5678910111213\n6\n7\n8") + app.resize(8, 7) + app.view.should == "#{status}0123456\n1\n2\n3\n4\n5678910\n#{command}" + end + describe 'closing' do it "can quit" do result = app.key(:"Ctrl+w") result.should == :quit end \ No newline at end of file