mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-02 19:48:03 +08:00
[UI spec] Add failing test for flick and direction.
Related to http://hipbyte.myjetbrains.com/youtrack/issue/RM-439
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user