â»2011/11/08 ã³ã¡ã³ãæ¬ã§ææãé ããç®æãå çä¿®æ£ãã¾ãããã¾ããå²ã¨å¤ãè¨äºã§ãã®ã§ææ°ã®æ å ±ã¯ Fabrication ãåç §ãããã¨ãã奨ããã¾ãã ãããä½ã£ã¦ãã¨ããmachinistã¨machinist_mongoã使ã£ã¦ãããã§ããã試ãã«åã ããæ°ã«ãªã£ã¦ããFabricationã§æ¸ãæãã¦ã¿ã¾ãããREADMEæ¸ãã¦ãããã¨ãããã¤ãå®éã«ãã£ã¦ã¿ãã®ã§ã¡ã¢ãã¦ããã¾ããå²ã¨ä½¿ããããã£ãã§ãã ä½ã«ä½¿ããã® ä¸è¨ããµãã¼ããã¦ãããã§ãã®ã§ãMongoid使ãã¾ãããã£ãï¼ Plain old Ruby objects ActiveRecord objects Mongoid Documents 使ã£ããã® Fabricationâ¦æ¬æ¥ã®ã¡ã¤ã³ Fakerâ¦åãã¼ã¿ãã©ãã©ãä½ã£ã¦ãããã㤠QuickStart & 使ãæ¹ Gemfile Rails/M
JB:ãã®ä»¶ã«ã¤ãã¦ä¸è¬åããã®ã¯å«ãªã®ã§ãç§ãTDD/BDD使ãã¨ãã¨ãã®çç±ã説æããã¦ãã ããã ç§ãåãã¦TDDã«åºä¼ã£ãã®ã¯ãã¹(æ¬ é¥ã¨ãã£ã¦ããã°ã¨ãã£ã¦ãããã§ãããï¼ãé²ãæ¹æ³ãæ±ãã¦ããããã§ããããã°ã©ã ä¸ã®å¤ãã®ãã¹ã®ãããã§ç§ã¯å®ç§ãã®æè¦ã失ã£ã¦ãã¾ãã¾ãããã©ããªãã¨ãæãéãã¦ãä»äºãå®ç§ã«è¿ã¥ããã¨æãããã¨ã¯ããã¾ããã§ãããããã¦ãæ¸ããã³ã¼ãããã¹ãããã°ãã°ãããå°ããªãã¹ãè¦ã¤ãä¿®æ£ã§ããã®ã§ã¯ãªããã¨èãã¾ããããã¹ãããã¦ãã¹ãè¦ã¤ãããã£ãã®ã¯ãæãã«ã¿ãããã®ãé²ãããã¨ãããããä»äºã«å¯¾ããå®ç§ãã®æè¦ã失ããªãããã«ããããã§ããå®éãã¹ãã¯å½¹ã«ç«ã¡ã¾ãããæ°å¹´çµã£ã¦ãTDDã¯ã³ã¼ãã£ã³ã°ã®ãã¹ãé²ãã®ã«å½¹ã«ç«ã¤ã ãã§ãªãããã¶ã¤ã³ã®å¤±æãé²ãã®ã«ãå½¹ã«ç«ã¤ãã¨ã«æ°ã¥ãã¾ãããããã¦BDDãå¦ã³ãã©ã®ãããªæ©è½ãå®è£ ãããã«ã¤ãã¦ã®å¤±æ
BDDã«ã¤ãã¦èªåãªãã«ã¾ã¨ãã¦ã¿ã Published on 2011-07-02 Updated on 2011-07-02 BDDã¨ããè¨èãå²ã¨äººã«ãã£ã¦æããã®ãéããããªã®ã§ã俺ã®ä¸ã§ã®BDDã¯ããã ããã£ã¦å 容ã®ã¨ã³ããªãå¥ã«çµ¶å¯¾çãªãã®ã§ããªãã¨æãã®ã§åèã¾ã§ã« çµè«ãã ã¨ããããçµè«ã ãç¥ããã人åãã«ã BDDã«ã¯ãµãã¤ã®ç¨®é¡ããã TDDã®è¨ãæãã®BDD(éçºå¯ã) ATDD(åãå ¥ããã¹ã)ã§ã®BDD(ã¦ã¼ã¶å¯ã) æ¯ãèã BDDã¯æ¯ãèãé§åéçºã¨è¨ããããããããã«ããã¹ãã¨ããè¨èã®ãããã«æ¯ãèãã¨ããè¨èã使ããæ¥æ¬èªçã«ã¯ä»æ§ã¨è¨ãã»ãããããããããããããªããå¤åãBDDã®ã¤ã¡ã¼ã¸ãæ´ã¿ã«ããã®ã¯ãã®æ¯ãèãã¨ããè¨èã«ããã¨æããã¨è¨ãã®ãæ¯ãèãã¨è¨ãã®ã¯ã人ã®ç«å ´ãã£ã¦å¤ããããã ãä¾ãã°ãããã°ã©ããããã¯ã©ã¹ãå®è£ ãã¦ããæã«è¨ãæ¯
Objective-Cã§TDDã£ã¦ã©ããããã ã£ãï¼ã£ã¦ãªã£ãã®ã§TwitterããPublic Timelineãåå¾ããã£ã¦æµããç°¡åã«ãã£ã¦ã¿ãã Twitterã®APIå©ç¨ã¯Tweetingãåèã«ããã # ã¨ãããã¨ã§iOS5ã§ã åæ public timelineãåå¾ããã ã ç°¡åãªãã¹ãããããã®ã§ Xcode4.2ã使ã TwitterãARCãªã©iOS5ã®æ©è½ã使ãã®ã§ public timelineãåå¾ããããã®ã¤ã³ã¿ãã§ã¼ã¹ãèãã TTTwitterã¨ããã¯ã©ã¹ã«ãã sendPublicTimelineToDelegate:withSelector:ã¨ããã¡ã½ããã使ãã¨ãã©ã¡ã¼ã¿ã§æ¸¡ããdelegateã®selectorã«çµæã®timelineã渡ãã¦ããã çµæã®å½¢å¼ã¯statusã¨bodyã¨ããkeyããã¤dictionary statusã«ã¯HTT
ã¯ããã« æ¬é£è¼ã§ã¯ããâ éææ§ãã¨ãããã¼ã¯ã¼ãã§ãã¢ã¸ã£ã¤ã«éçºã«ã¤ãã¦èª¬æãã¦ãã¾ããååã¯ããã¹ãé§åéçº(TDD)ã®æã¤ãéçºãä¿é²ããè¨è¨ä½æ¥ã¨ãã¦ã®å´é¢ã«ã¹ããããå½ã¦ã¦èª¬æãã¾ãããä»åã¯ããããã®èããå±éããã¦ã¿ããã¨æãã¾ããå ·ä½çã«ã¯ãæ¯ãèãé§åéçº(BDD)ã¨åãå ¥ããã¹ãé§åéçº(ATDD)ã¨ããäºã¤ã®ãããã¯ãããç´¹ä»ãã¾ãã ãã¹ãã®ã¬ãã¥ã¼ ååããã¹ãé§åéçºã«ããããã¹ãããè¨è¨ä½æ¥ã§ããã¨ããèãæ¹ããç´¹ä»ãã¦ãã¾ãããããã¯ãåã ã®ã¯ã©ã¹ã®ã¤ã³ã¿ã¼ãã§ã¼ã¹(=æ¯ãèã)ãããã¹ãã«ããæ確ã«ãã¦ããã¨ãããã®ã§ããçµæçã«ãä½ããããã¹ãã¯ãå®è£ ã¨ã®ä¹é¢ãèªåçã«æ¤åºã§ããè¨è¨æ¸ã¨ãªãã¾ãã ä»æ§å¤æ´ããªãã¡ã¯ã¿ãªã³ã°ã«ä¼´ãã½ããã¦ã§ã¢ã®æ¹å¤ã«éãã¦ããã°ã®æ··å ¥ãèªåçã«æ¤ç¥ã§ããã®ã§ãå®è£ ã¨è¨è¨ã®åæãåããã¨ãã大ããªã¡ãªãããããã¾ãã ã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}