[UI spec] Add failing test for flick and direction.

Related to http://hipbyte.myjetbrains.com/youtrack/issue/RM-439
This commit is contained in:
Eloy Durán
2014-03-05 17:26:56 +01:00
parent 21e0311921
commit 7af091acb9

View File

@@ -89,6 +89,12 @@ describe "Bacon::Functional::API, concerning one-shot gestures" do
controller.switch.isOn.should == false
end
# TODO the directions seem to be completely ignored.
it "uses the direction symbols to define the direction of the flick" do
flick "Switch control", :to => :left
controller.switch.isOn.should != true
end
it "taps a switch" do
tap "Switch control", :at => :right
controller.switch.isOn.should == true