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ã«é¢ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}