Permalink
Browse files

It apears that a swipe gesture recognizer always needs a change in bo…

…th drag path axes.

In this case we change the Y slightly: 30 -> 35.
  • Loading branch information...
1 parent 62d8965 commit d15eac0f298c5585029c3ac941012324e3d95403 @alloy committed Jul 14, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 spec/list_controller_spec.rb
@@ -2,7 +2,11 @@
tests ListController
it "new view should appear after a swipe" do
- flick 'number 3', :from => :left, :to => :right, :duration => 1
+ cell = view('number 3')
+ from = cell.convertPoint(CGPointMake(10, 30), toView:nil)
+ to = cell.convertPoint(CGPointMake(cell.bounds.size.width - 10, 35), toView:nil)
+
+ flick cell, :from => from, :to => to
view('new view').should.not == nil
end
end

0 comments on commit d15eac0

Please sign in to comment.