RubyãRailsã§å¤é¨APIãå©ç¨ããã½ããã¦ã§ã¢ãéçºãã¦ããã¨ãã«ããã¹ãã§å®éã«ä½åº¦ãAPIã«åãåããã«ããã¦ããããé ãã¦è©±ã«ãªãã¾ãããã¾ãã¦ããå¤é¨APIãã¡ã³ããã³ã¹ãªãã¦ãã¨ã«ãªã£ãããéçºãæ¢ã¾ã£ã¦ãã¾ãã¾ãã ããã§ãwebmockãªã©ãå©ç¨ãã¦ãHTTPãªã¯ã¨ã¹ããã¬ã¹ãã³ã¹ã®mockãä½æãããã¨ãæã¾ããã§ãã vcrãçµã¿åããã¦å©ç¨ããã°ãååã ãå®éã«HTTPãªã¯ã¨ã¹ãã¨ã¬ã¹ãã³ã¹ãè¨é²ãã¦ã2åç®ä»¥éã¯è¨é²ãããã¼ã¿ããmockã¨ãã¦ãã¼ã¿ãè¿ãããã«ç°¡åã«ã§ãã¾ãã webmockã¨vcrã®ã¤ã³ã¹ãã¼ã«æ¹æ³Gemfileã«ä»¥ä¸ã®ããã«è¨è¿°ãã group :development, :test do gem 'webmock' gem 'vcr' endgemãã¤ã³ã¹ãã¼ã«ãã $ bundletest/test_helper.rbã«VCRã«é¢ãã
{{#tags}}- {{label}}
{{/tags}}