spec/ruco/keyboard_spec.rb in ruco-0.2.13 vs spec/ruco/keyboard_spec.rb in ruco-0.2.14
- old
+ new
@@ -99,12 +99,14 @@
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"]
+ if RUBY_VERSION > '1.9.0'
+ it "can handle strings from 1.9" do
+ type ['a']
+ output.should == ["a"]
+ end
end
it "can handle Alt+x codes" do
type [27,103]
output.should == [:"Alt+g"]