tdd
æå¹Rubyä¼è°ã¯ãç´ä¸å¹´ã¶ãã«è¨äºãæ¸ãã®ã«ãµããããããã°ãããã¯ã§ãã :-)9/14..9/16ã«è¡ãããæå¹Rubyä¼è°ã«åå ãã¾ãããããããã¾ã§çºè¡¨ã®æ©ä¼ãããã ããã®ã§ããã¤ãçºè¡¨ãã¦ãã¾ãããã¾ãã¯2æ¥ãã®åæ åºæ¼æ ã§ãRails3ã®éã¬ã·ããç´¹ä»ãâ¦
autotest"ã ã"ã§ã¯ãã£ããããªãã¨ãããã¹ã好ãã®Rubyistã®ã¿ãªãã¾ã¸ãhttp://github.com/moro/spe_cukeã³ã¼ããæ¸ããªããã¢ãªã¢ãªã¨ãã¹ããå®è¡ãããå ´åãrake specã§å ¨ä½ãæµãã®ãããªãã«ããã¡ã¤ã«åä½ã¨ãExample/Scenarioåä½ã¨ãã§ãã¹ããâ¦
ååã«ç¶ããgihyo.jpã§wwã®è¨äºã®2åç®ãå ¬éããã¾ãããhttp://gihyo.jp/dev/serial/01/ruby/0037ä»åã¯ã(é·ãåããªãçµã¦)ã¤ãã«wwãRSpecã®ä¸ãã使ãæ¹æ³ãç´¹ä»ãã¦ãã¾ãããã¡ãããRSpec以å¤ã§ã使ãã¾ãã ãã¨ãã°Cucumberã§ã¯Before(){ }ããâ¦
èªåã®æ¥è¨ã§ã話ãããã®ãã¡ãã£ã¨é ãã¦ãã¾ãã¾ããããç§ããã³ãã³è¦ã¦åå¼·ããã¦ããã£ã¦ããgihyo.jpã®Ruby Freaks Loungeã«wwã®è¨äºãå¯ç¨¿ãã¾ãããhttp://gihyo.jp/dev/serial/01/ruby/0035ä»åã¯ãww(double-web)ã®ååã®ç±æ¥ã§ããããã«ã¨ãã¢â¦
è¿é ã¯WebAPIã使ã£ãã¢ããªã±ã¼ã·ã§ã³ãä½ããã¨ãå¢ãã¦ããã¨æãã¾ãããèªååãã¹ãããã®WebAPIã¸ã®ã¢ã¯ã»ã¹ã¯ã©ããã£ã¦ã¾ãã? ç§ã¯ãèªåã§stubãããFakeWeb(ã¬ã·ãå 輩ã«æãã£ã!!)ã使ã£ãããã¦ããã§ãããã¤ãã¤ããã£ããããªãé¨åãããâ¦
TDDã§éçºãã¦ãã人ã®ç®ä¸ã®æ©ã¿ã¯Slow teståé¡ãããªãã¡ãã¹ãã®å®è¡æéããããããã¦è¾ããã¨ããåé¡ã§ãã ãããµã¨æãã¨ããããã£ã¦ã次ã®ãããªã¿ã¹ã¯ãå®ç¾©ãã¦ãããããªãã¨ãããã¨ã§ããããåçã«æ©ããªã£ãã§ã¯ããã¾ãããã namespaceâ¦
ãªãã¸ã§ã¯ãå¶æ¥½é¨2009å¤ã¤ãã³ãã®è¥äººã»ãã·ã§ã³ã§ã話ãããæ©ä¼ãããã ãã¾ããã ã¿ã¤ãã«ã¯ãããã¸ã§ã¯ãç¹åè¨èª ã¨ãã夢ãè¦ããã ãã§ããèªç¶è¨èªã§ä»æ§ãè¨è¿°ã§ããCucumberã¨ãè±èªã©ã¤ã¯ãªæ¸ãæ¹ãç®æãæ¹åããå¾ã ã«æ¹é転æãéãã¤ã¤â¦
ä»æ¥ã¯ä¹ ãã¶ãã«Rails 2.0.2ã使ããä¹ ãã¶ãã«ä»å±ã®ãã¡ã³ã¯ã·ã§ãã«ãã¹ãæ©æ§ã使ã£ã¦ããã®ã§ãããããã§ã²ã©ããã°ã«ééãã¾ããã詳ããã¯jijixiããã®æ¥è¨ã«ã¦ã¾ã¨ãããã¦ãã¾ããããã¹ãã¯ã©ã¹å ã§å®ç¾©ããsetupãå®è¡ãããªãã¨ãããã®ã§ã(â¦
èªç»èªè³ãå°å·ãã¦èªåã®æºã«ç½®ãã¦ãããããhttp://rails-recipebook.g.hatena.ne.jp/rrbk/20071001/1191254441ä¸æ©ç½®ãã¦ã¿ç´ãããæ¥ãããããªã£ããããã®ããªãã
èªåã§ããããããã¦ãã®ã§ããã³ãå¸æãèãã ããå è¨äº : http://techon.nikkeibp.co.jp/article/TOPCOL/20070806/137518/TDDãç´¹ä»ããã¨ãã«ããTDDã§ã¯ãããã¯ãã³ã¼ãã®åã«ãã¹ããæ¸ããã¨ããç´¹ä»ã®ãããããå¤ããã§ãããããã¯ã¡ãã£ã¨èª¤è§£â¦
ã¾ãã¯ãã¡ããã http://idm.s9.xrea.com/ratio/2006/11/21/000549.htmlãªããããããã£ãããã¾ãããDevelopment ã Drive ããããã®ãã¹ãã«ã¤ãã¦ã¯ãã£ããåæããã ã®é³ãã§ãªããããããã¨ãRailsåå¼·ä¼ã§åºãé»è²ã®è©±ãã¡ãã£ã¨ææããã¨ãéâ¦
ãã¾Test::Baseãç±ã Test::Base on Railsããã£ããããã¾çµããã¾ããã ããã¼æªæ¶åãªã¡ã¢ã§ããã ãã¹ãã³ã¼ãã¨ãã¼ã¿ã®(æ¦å¿µçãª)åé¢ ãã¹ãã®ãã¿ã¼ã³ãã§ããã¨ãã¼ã¿ãã©ãã©ã追å ãã¦ããã å®åçãªãã¹ããæ¸ãã®ã«ããã filterãããªããâ¦
æ¨æ¥ã¯OSCã«è¡ã£ã¦ãã¾ãããã»ããã¼ããã¼ã¹ã¯ã»ã¨ãã©è¡ãããä¾ã«ãã£ã¦Rubyã®ä¼ã®ãããã§ã ãã ããã¦ãããã§ããã æãããã師å ã®å¸«å ãid:t-wadaããã«ããä¼ãã§ãã¦ã³ã£ãããã§ãããã§Railsã¨TDD(BDD)ã®è©±ãªããããã®ã§ãä¸é±éã§æã£ããâ¦
assert_select ã§CSSã»ã¬ã¯ã¿ã使ã£ããã³ãã¬ã¼ãã®ã¢ãµã¼ã·ã§ã³ãåºããããããAWDwR#2ã§è¦ä»ãã¦é£ã®äººãçãä¸ãã£ã¦ã¾ãã http://dev.rubyonrails.org/changeset/4929