Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 525 Bytes

configuring_rspec.md

File metadata and controls

19 lines (13 loc) · 525 Bytes

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.