Learning angular with testing (Rails Back end)