Provisioning Frameworks Casual Talks vol.1 (https://gist.github.com/studio3104/5417631) ã§ã®çºè¡¨ã¹ã©ã¤ãã§ã
ProcessLibrary.comã¸ããããããã¡ãã¯PCMAGã®âæè¡ç³»ã¯ã©ã·ãã¯ã»ã¦ã§ããµã¤ãï¼ï¼ï¼é¸âã®âãã¦ã³ãã¼ãã¨DIYâé¨éã«å ¥è³ãããµã¤ãã§ãã ProcessLibraryã¯Windowsã®PCã§å®è¡ä¸ã¾ãã¯æ¤åºãããããã»ã¹ã¨DLLã«é¢ããæ å ±ãæä¾ããç¡æã®ãªã½ã¼ã¹ã§ãã ã³ã³ãã¥ã¼ã¿ã¼ããã»ã¹ã®è©³ç´°ã«ã¤ãã¦ã¯ããã¼ã ãã¼ã¸ã¨å³å´ã®ã¡ãã¥ã¼ã«ããæ¤ç´¢æ©è½ã使ç¨ããããããã»ã¹ãã¤ã¬ã¯ããã使ç¨ãã¦åºç¯ãªãªã¹ããåç §ãããã¨ãã§ãã¾ãã 2004年以æ¥ãç§ãã¡ã¯ããå®å ¨ã§æ¥½ããã³ã³ãã¥ã¼ã¿ä½é¨ã«è²¢ç®ããå°éç¥èã®æ å ±æºã¨ãªãã¹ãåªãã¦ãã¾ããã ProcessLibrary.comã¯ããPC WorldãããWashington Postããªã©ãä¸çä¸ã®ITãããã§ãã·ã§ãã«ã«ãã£ã¦ä½¿ç¨ããæ¨å¥¨ããã¦ãã¾ãã ããã»ã¹ã©ã¤ãã©ãªã«ã¤ãã¦ã®è©³ç´°ã¯ãããã¯ãªãã¯. Win
Mock Object Mock Objectã®ä½æ my_mock = mock(<name>) my_mock = mock(<name>, <options>) person = mock('person', :null_object => true) Mockã¯ååãå¼æ°ã«åããä»æ§ã®æ¤è¨¼ãçµãã£ãéã«å ¨ã¦ã®Mockãæ¤è¨¼ãããã optionå¼æ°ãããã·ã¥ã§ä¸ãããã¨ã§Mockã®æ¯ãèãã調æ´ã§ãããç¾å¨ã:null_objectã®ã¿ããµãã¼ãããã¦ããã:null_object => trueãå¼æ°ã«æ¸¡ãã¨Mockã«å¯¾ããå ¨ã¦ã®ã¡ã½ãããMockèªèº«ãè¿ãããã«ãªãã Mockã«å¯¾ãã¦ã¹ã¿ãã¡ã½ãããå®ç¾©ãã person.should_receive(:name) # person.name => nil person.should_not_receive(:name) #
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}