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

        to: 'second'
      ).toBe 'none'


    # 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'

    # back button detection edge case
    it 'should detect reverse direction in paramzartized URLs (1)', ->
      expect(viewService.getDirection
        from: 'third'
        to: 'second'
      ).toBe 'reverse'

    it 'should detect reverse direction in paramzartized URLs (2)', ->
      expect(viewService.getDirection
        from: '/home/second/:third'
        to: 'second'
      ).toBe 'reverse'

    # jumping levels
    it 'should detect reverse directions when jumping back to /home', ->
      expect(viewService.getDirection
        from: '/home/second/:third'
        to: '/home'
      ).toBe 'reverse'

    it 'should detect reverse directions when jumping back to state home', ->
      expect(viewService.getDirection
        from: 'third'
        to: 'home'
      ).toBe 'reverse'

    it 'should detect normal directions when jumping from home to third', ->
      expect(viewService.getDirection
        from: 'home'
        to: 'third'
      ).toBe 'normal'

    it 'should detect normal directions when jumping from /home to third', ->
      expect(viewService.getDirection
        from: '/home'
        to: '/home/second/:third'
      ).toBe 'normal'
