spec/ruco/keyboard_spec.rb in ruco-0.0.26 vs spec/ruco/keyboard_spec.rb in ruco-0.0.27
- old
+ new
@@ -84,12 +84,20 @@
it "returns key-code for unprintable keys" do
type [11121, 324234]
output.should == [11121, 324234]
end
- it "recognises weird key combos" do
- type [27, 91, 49, 59, 50, 65]
- output.should == [:"Shift+up"]
+ it "recognises escape sequence for Shift+down" do
type [27, 91, 49, 59, 50, 66]
output.should == [:"Shift+down"]
+ end
+
+ it "recognises escape sequence for Shift+up" do
+ type [27, 91, 49, 59, 50, 65]
+ output.should == [:"Shift+up"]
+ end
+
+ it "can handle strings from 1.9" do
+ type ['a']
+ output.should == ["a"]
end
end
\ No newline at end of file