æ¨å¹´æ«ãããããå°è¦æ¨¡(60ç»é¢ç¨åº¦)ã®Ruby on Railsã使ã£ãã·ã¹ãã ãéçºããéã«ãRSpecã使ã£ã¦ã¿ã¾ããã®ã§ããã®ææ³ãªã©ã ã©ãã¾ã§æ¸ãã ä»åã¯ãModel, Library, Helper ã«å¯¾ãã¦ã®RSpecã®ã¿æ¸ãã¾ãããå¾æ¥ã®Railsã®UnitTestã«ç¸å½ããé¨åã®ã¿ã§ãã ãã ããã³ã³ããã¼ã©ã¼ã«ã¯çµ¶å¯¾ã«ãã¸ãã¯ãæ¸ããªãããã«ãããã¸ãã¯ã¯ Model, Library ã«æ¸ãããã«ãã¾ããã®ã§ããªããã¹ãã¯åºæ¥ã¦ããã¨æãã¾ãã èªã¿ããã RSpecã¯å¾æ¥ã®ã¦ããããã¹ãã«æ¯ã¹ã³ã³ãã¯ãã«æ¸ããã®ã§ãã¹ããèªã¿ããããªãã¾ããçç±ã¯ããããã¨ããã¨æãã¾ãã UniTestã®assert㯠assert(æå¾
å¤, ãã¹ã対象ã®ã¡ã½ãã)ã¨ãã¹ã対象ãå¾ãã®æ¹ã«ããã¾ããã RSpec ã§ã¯ ãã¹ã対象ã®ã¡ã½ãã.should == æå¾
å¤ãªã®ã§ã
{{#tags}}- {{label}}
{{/tags}}