- 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)
推薦閱讀
- 物聯網標準化指南
- Cisco OSPF命令與配置手冊
- Truffle Quick Start Guide
- INSTANT PhpStorm Starter
- Hands-On Full Stack Development with Spring Boot 2 and React(Second Edition)
- 計算機網絡工程實用教程(第2版)
- 物聯網通信技術
- Kong網關:入門、實戰與進階
- 一本書讀懂TCP/IP
- Enterprise ApplicationDevelopment with Ext JSand Spring
- 物聯網技術與實踐
- 黑客心理學:社會工程學原理
- 從實踐中學習Kali Linux網絡掃描
- Learn Node.js by Building 6 Projects.
- 物聯網工程應用技術