- RSpec Essentials
- Mani Tadayon
- 81字
- 2021-07-09 19:33:38
Chapter 2. Specifying Behavior with Examples and Matchers
In this chapter, we'll see how RSpec's examples and matchers implement the general testing concepts of units and assertions. An example is the base unit for a set of RSpec specs and, within it, you must have a matcher to assert something, otherwise it would serve no purpose.
In this chapter, we will cover the following topics:
- Structure of a spec file
- RSpec output
- Matchers
- The
let
helper - Testing for errors
推薦閱讀
- Vue 3移動(dòng)Web開(kāi)發(fā)與性能調(diào)優(yōu)實(shí)戰(zhàn)
- Mobile Application Development:JavaScript Frameworks
- Photoshop智能手機(jī)APP UI設(shè)計(jì)之道
- 程序員數(shù)學(xué):用Python學(xué)透線性代數(shù)和微積分
- Building Mobile Applications Using Kendo UI Mobile and ASP.NET Web API
- C/C++常用算法手冊(cè)(第3版)
- Mathematica Data Analysis
- Active Directory with PowerShell
- OpenStack Networking Essentials
- Extending Unity with Editor Scripting
- Python程序設(shè)計(jì)開(kāi)發(fā)寶典
- SEO教程:搜索引擎優(yōu)化入門與進(jìn)階(第3版)
- SSH框架企業(yè)級(jí)應(yīng)用實(shí)戰(zhàn)
- C Primer Plus(第6版)中文版【最新修訂版】
- Mastering ASP.NET Web API