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

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)
主站蜘蛛池模板: 龙海市| 潜山县| 绥化市| 柘城县| 水城县| 峨山| 乌拉特中旗| 淮阳县| 鄯善县| 辽宁省| 南溪县| 乌海市| 托克托县| 临邑县| 新野县| 浠水县| 临沧市| 白城市| 芦溪县| 密山市| 体育| 葫芦岛市| 许昌市| 炎陵县| 宁国市| 佳木斯市| 象山县| 游戏| 措美县| 广德县| 新闻| 昂仁县| 吉林省| 囊谦县| 桂东县| 日照市| 英山县| 昆明市| 桐乡市| 尼木县| 灵寿县|