- Microservices Development Cookbook
- Paul Osman
- 65字
- 2021-07-16 17:48:27
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)
推薦閱讀
- 計算機網絡與通信(第2版)
- 連接未來:從古登堡到谷歌的網絡革命
- 萬物互聯:蜂窩物聯網組網技術詳解
- JBoss EAP6 High Availability
- Hands-On Full Stack Development with Spring Boot 2 and React(Second Edition)
- Spring Cloud微服務架構進階
- Yii Application Development Cookbook(Second Edition)
- 網管員必讀:網絡管理(第2版)
- INSTANT KineticJS Starter
- 4G小基站系統原理、組網及應用
- 通信十年:擁抱互聯網
- 網絡利他行為研究:積極心理學的視角
- 園區網絡架構與技術
- 深入理解計算機網絡
- 精通SEO:100%網站流量提升密碼