ããã«ã¡ã¯ satoã§ãã testã³ã¼ãã§ã¯ããã©ã¼ãã³ã¹ãã»ãã¥ãªãã£ããã»ã©æ°ã«ãããã¨ã¯ãªãã¨æãã®ã§ãtestã³ã¼ã㧠evalã使ã£ã¦æ¥½ã§ããã±ã¼ã¹ãæ¸ãã¦ã¿ããã¨æãã¾ãã ããä¼¼ãModel 㧠User㨠Admin ãããã¨ãã¾ãããäºã¤ã® Model ã«ã¯ confirm ã¨ããã¡ã½ãããå®ç¾©ããã¦ãã¦ãã¦ã¼ã¶ç»é²ããã¦ã¡ã¼ã«ã§éããã¦ãã URLãããã¯ãªãã¯ãã㨠status ã 'register' ãã 'confirm' ã«å¤æ´ããã¾ãã class UserTest ["status = ?", 'register']) user.confirm assert(user.status == 'confirm', 'confirm error') end end ã¨ãããã¹ããUserTestã㨠AdminTest ã«æ¸ãã¾ãã ããã以ä¸ã®ãã㪠mo
{{#tags}}- {{label}}
{{/tags}}