spec/ruco/application_spec.rb in ruco-0.0.27 vs spec/ruco/application_spec.rb in ruco-0.0.28

- old
+ new

@@ -152,9 +152,22 @@ app.key(:right) app.key(:enter) app.key('c') editor_part(app.view).should == "a\ncb\n b" end + + it "indents when tabbing on selection" do + write("ab") + app.key(:"Shift+right") + app.key(:tab) + editor_part(app.view).should == " ab\n\n" + end + + it "unindents on Shift+tab" do + write(" ab\n cd\n") + app.key(:"Shift+tab") + editor_part(app.view).should == "ab\n cd\n" + 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