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

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)
主站蜘蛛池模板: 温州市| 镶黄旗| 常德市| 泊头市| 五常市| 娱乐| 龙陵县| 从江县| 天峻县| 平谷区| 崇文区| 通海县| 浦北县| 南丰县| 临泉县| 林西县| 泽普县| 罗定市| 六枝特区| 讷河市| 黎川县| 高邑县| 阿拉善盟| 桃源县| 沐川县| 阳城县| 临城县| 社旗县| 南岸区| 宁武县| 土默特左旗| 舟山市| 吉林市| 芜湖县| 威海市| 泸溪县| 太保市| 波密县| 西林县| 新巴尔虎右旗| 娱乐|