         to: 'second'
       ).toBe 'none'
 
+    it 'should detect reverse direction using state objects', ->
+      expect(viewService.getDirection
+        name: 'second'
+        url: '/home/second'
+      ,
+        url: '/home'
+        name: 'home'
+      ).toBe('reverse')
+
+    it 'should detect normal direction using state objects without urls', ->
+      expect(viewService.getDirection
+        name: 'second'
+      ,
+        name: 'home'
+      ).toBe('reverse')
+
 
     # using urls
     it 'should detect normal direction using url strings', ->

      expect(viewService.getDirection '/home/', '/home/second').toBe 'normal'
      expect(viewService.getDirection '/home', '/home/second/').toBe 'normal'
      expect(viewService.getDirection '/home/', '/home/second/').toBe 'normal'

        transition: 'fade'
      .state 'second',
        url: '/home/second'
        transition: 'slide'
      .state 'third',
        url: '/home/second/:third'
        transition: 'slide'
    null

