蒼時 v2.0-beta+1
@elct9620
說
Fri, Feb 10, 2023 1:31 AM
1
RSpec 除了 Before 比較常用之外,Around 其實很方便卻經常被忘記(我自己也是)像是做一些 Unit Test 要 Mock 掉時間時,用 around 會比 before + after 更好一點。
Ruby
RSpec
優雅的 RSpec 測試 - 前置處理
載入新的回覆
Ruby RSpec