官术网_书友最值得收藏!

Getting ready

We'll use the webmock gem for stubbing out external HTTP requests in our tests, so update your monolith gemfile to include the webmock gem in the test group:

group :test do
# ...
gem 'webmock'
end

You should also update spec/spec_helper.rb to disable external network requests. That will keep you honest when writing the rest of your test code:

require 'webmock/rspec'
WebMock.disable_net_connect!(allow_localhost: false)
主站蜘蛛池模板: 平遥县| 宁陕县| 沛县| 东平县| 余庆县| 南通市| 黄大仙区| 夏邑县| 沙雅县| 松原市| 锡林郭勒盟| 合江县| 林芝县| 山阳县| 托里县| 通辽市| 镇巴县| 绩溪县| 余干县| 咸宁市| 莆田市| 藁城市| 光山县| 昭觉县| 柳河县| 曲水县| 施秉县| 正镶白旗| 博客| 平山县| 彩票| 静海县| 东乌珠穆沁旗| 交口县| 绥滨县| 玉山县| 乌拉特后旗| 苍南县| 长治县| 称多县| 翁源县|