(注: 以ä¸ã®å
容ã¯ãRSpec ã¦ã¼ã¶ã®éã§åºã¾ã£ã¦ãããã¨ã§ããªãããã¡ãã RSpec éçºãã¼ã ã®å
¬å¼ãªè¦è§£ã§ããªããããã¾ã§ã¯ã·ã®å人çãªè¦è§£ã§ãã) RSpec ã®ãããã¨ããã¯ãã³ã¼ãã«å¯¾ãã¦ã§ã¯ãªãä»æ§ã«å¯¾ãã¦ãã¹ããæ¸ããã¨ãæ確ã«ãããã¨ã ã¨æããä½ãä»ããã¨è¨ããããã ãã©ãä»ããã«ãªã£ã¦ããããæ°ã¥ãããã¯ããªé ã§ãã¾ããã£ãã ã¯ã·ãæåã¯ããassert_equal(expected, actual)ãã®ãããã«ãactual.should == expectedãã¨æ¸ããã£ãããã«ç®ã奪ããã¦ããã¹ãã³ã¼ããèªç¶è¨èªã«è¿ãå½¢ã§è¨è¿°ããã®ã RSpec ã®ãããã¨ããã ã¨åéããã¦ãããããããTDD (Test Driven Development)ããããBDD (Behaviour Driven Development)ãã¸ã¨ããæ°ããæ½®æµã ã¨åéããã¦ã
{{#tags}}- {{label}}
{{/tags}}