Testing rails4 with AgularJS