     third = state.get 'third'
     fourth = state.get 'fourth'
     fifth = state.get 'fifth'
+    alien = state.get 'alien'
 
   describe 'listen', ->
     it 'should listen to events', ->

  describe 'getDirection', ->
    it 'should detect "normal"', ->
      expect(viewService.getDirection home, second).toBe 'normal'
      expect(viewService.getDirection fourth, fifth).toBe 'normal'

    it 'should detect "reverse"', ->
      expect(viewService.getDirection second, home).toBe 'reverse'

    it 'should detect no direction', ->
      expect(viewService.getDirection third, fifth).toBe null
      expect(viewService.getDirection {url: '^'}).toBe null

  describe 'getType', ->
    it 'should detect "normal" type', ->

        url: '/home/baz/fifth'
        data:
          transition: 'slide'
      .state 'alien',
        url: '/crazy/route'
    return

  viewService = null
  state = null
  scope = null

  home = second = third = fourth = fifth = alien = null


  beforeEach inject ($rootScope, bpView, $state) ->
