Captcha security check testingrails.com is for sale Please prove you're not a robot View Price Processing
Preface to this edition Acknowledgements 1. Introduction Confident testing Why RSpec? Who should read this book My testing philosophy How the book is organized Downloading the sample code Code conventions Discussion and errata A note about gem versions A note about styling About the sample application 2. Setting up RSpec Dependencies Test database RSpec configuration The rspec binstub Try it out!
Cucumberã使ã£ã¦ãRailsã¢ããªã®ãã¹ããé«ãæ½è±¡åº¦ã§æ¸ãé²ãã¦ããããã«æ¬ ãããªãã®ãWebratã¨ããã©ã¤ãã©ãªã§ããååã®Cucumberå ¨ä½åã®ç´¹ä»ã«å¼ãç¶ãããã¡ãWebratãç´¹ä»ãã¾ããä»åãé·ãã§ãã 2008-01-27ä¿®æ£ id:amacouããããææãåãã¾ãã¦(ã¨ããã¶ãsatokoããã以åãã£ããã£ã¦ã)webrat_steps.rbã®çæå ãã¹ãä¿®æ£ã èª: ${RAILS_ROOT}/step_definitions æ£: ${RAILS_ROOT}/features/step_definitions ãããã¨ããããã¾ãã ä»åã®ã¾ã¨ã Webratããã ç»é¢é·ç§»ãããªã³ã¯ãã¯ãªãã¯ãããããã¿ã³ãã¯ãªãã¯ãããã¨æ¸ãã ãªã³ã¯ã®ã¢ã³ã«ã¼ããã¹ãã§ã¯ã¾ã æ¥æ¬èªã使ãããããã»ã©ãããéã£ãã®ã§æ©æ©æ¸ããããã«ãªãã¯ãã ãã©ã¼ã ã®å ¥åé ç®ãã©
ãã¯ããã¹ãã®è©±é¡ã«ãªã£ã¦ stubã¨mockã®éãã1è¡ã§ï¼ ä»ã®ãã¹ããã¬ã¼ã ã¯ã¼ã¯ã®ãè¦ãã¯ï¼ RRãç±ããï¼(è±èªã½ãæ¸ãã®ãç®çãããªããrubyã½ãdslãå¿ è¦ãªãã ï¼) mock 㧠should_receive ã§ã¬ãã¬ãã«ãµããªãã¸ã§ã¯ãã«ä»å ¥ãã¦ãã人ã£ã¦ä½ãªã®ï¼ duck type ã®èãæ¹ãããã¦ããä½ããããã¯ç¸æã«ä»»ãããããã¼ mock ã¯æ¢éã§ããã¹ãã stub ãã使ããªããã ãããã俺ãæè¿ã¯å®ãã¼ã¿æ´¾ã«æ»ã£ã¦ãããã ï¼Fixtureã©ãï¼ Fixture ã¯ã·ããªãªå¥ã«ä½¿ãåããã®ãé¢åãããªãï¼ ãã㧠FactoryGirl ã§ãã ä½ãå¬ããã®ï¼ ãã¹ããã¼ã¿ã ruby ã³ã¼ãã§åçã«æ¸ãããã¨ãããã ããã£ã¦ããã fixture ãç°¡åã«åãæ¿ããããæ©è½ãããã°ä¸è¦ãããï¼ åçãªã YAML ã§ã´ãªã´ãªæ¸ãæ¹æ³ãããã åãæ¿ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}