configuring_rspec.md

August 14, 2023 ยท View on GitHub

Configuring RSpec

If you find yourself in an RSpec establishment, your spec helper just needs this:

RSpec.configure do |config|
  config.include Mocktail::DSL

  config.after(:example) { Mocktail.reset }
end

But configuration will only get you so far. Once your prep is complete, it's time to roll up your sleeves and get to work.

Incorporate Mocktail into your test-driven development workflow.

Leverage Mocktail's metaprogramming essence for other testing utilities.