Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit d15eac0f298c5585029c3ac941012324e3d95403 1 parent 62d8965
Eloy Durán authored

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. 6  spec/list_controller_spec.rb
6  spec/list_controller_spec.rb
@@ -2,7 +2,11 @@
2 2
   tests ListController
3 3
 
4 4
   it "new view should appear after a swipe" do
5  
-    flick 'number 3', :from => :left, :to => :right, :duration => 1
  5
+    cell = view('number 3')
  6
+    from = cell.convertPoint(CGPointMake(10, 30), toView:nil)
  7
+    to   = cell.convertPoint(CGPointMake(cell.bounds.size.width - 10, 35), toView:nil)
  8
+
  9
+    flick cell, :from => from, :to => to
6 10
     view('new view').should.not == nil
7 11
   end
8 12
 end

0 notes on commit d15eac0

Please sign in to comment.
Something went wrong with that request. Please try again.