spec/ruco/application_spec.rb in ruco-0.0.17 vs spec/ruco/application_spec.rb in ruco-0.0.18

- old
+ new

@@ -122,9 +122,17 @@ app.key(:tab) app.key(:enter) app.key('a') editor_part(app.view).should == " \n a\n" end + + it "indents when typing and the next line has more whitespace" do + write("a\n b\n") + app.key(:right) + app.key(:enter) + app.key('c') + editor_part(app.view).should == "a\n c\n b" + end end describe '.ruco.rb' do it "loads it and can use the bound keys" do Tempfile.string_as_file("Ruco.configure{ bind(:'Ctrl+e'){ @editor.insert('TEST') } }") do |file| \ No newline at end of file