test snippet app of ruby on rails 4