2018.04.11 Rails tips: RSpecã®`let`ãããã¯ã`before`ãããã¯ã¯åºæ¬é¿ããã¹ãï¼ç¿»è¨³ï¼ æ¦è¦ åèè ã®è¨±è«¾ãå¾ã¦ç¿»è¨³ã»å ¬éãããã¾ãã è±èªè¨äº: RSpec - you should avoid let and before blocks to use natural flow åæå ¬éæ¥: 2018/02/06 èè : PaweÅ DÄ browsk Rails tips: RSpecã®letãããã¯ãbeforeãããã¯ã¯åºæ¬é¿ããã¹ãï¼ç¿»è¨³ï¼ RSpecã®ä½è ã¯ãããªãã®çç±ããã£ã¦beforeãletãããã¯ãèæ¡ãã¾ããããæ¬å½ã«å¿ è¦ã§ãªãéããããã®å©ç¨ã¯é¿ããæ¹ãè³¢æã§ããçç±ã¯ä»¥ä¸ã®ã¨ããã§ãã ãã¹ãã®æ¬ä½ããletã®å®ç¾©ã«ã¸ã£ã³ãï¼ã¾ãã¯ãã®éã®ã¸ã£ã³ãï¼ãããã¨ã§ããã¹ãã®èªç¶ãªæµãã妨ãããã¨ã«ãªãã¾ãã letã使ãã¨ãã¹ã
{{#tags}}- {{label}}
{{/tags}}