RSpec 核心

rspec-core 提供 RSpec 程式碼範例的結構

RSpec.describe Account do
  it "has a balance of zero when first opened" do
    # example code goes here - for more on the
    # code inside the examples, see rspec-expectations
    # and rspec-mocks
  end
end

問題

此文件是開源的,並且正在開發中。如果您發現它不完整或令人困惑,請提交問題,或者更好的方式是發起 Pull Request