BDD with Shoulda
summary
Shoulda is a tiny Test::Unit companion that adds nested contexts and one-line should macros and Rails-aware ActiveRecord and controller helpers as a gem or plugin; its should_be_restful generates 50–200 tests for standard CRUD and formats; implementation is refactored to avoid Test::Unit namespace pollution and is configurable; practical notes include using factories instead of brittle fixtures, judicious mocking to avoid overmocking, and auto-test style randomized runs to catch brittle order-dependent tests.
AI-written summary · about
chapters (5)
related talks
01h 19mBDD and Acceptance Testing with RSpec & Capybara
27mTDD on the Shoulders of Giants
54mTDD Workshop: Outward-in Development, Unit Tests, and Fixture Data
01h 00mBehaviour Driven Development with RSpec
16mTDD Workshop: Mocking, Stubbing, and Faking External Services
48mBDD - It’s More Than Acceptance Tests
40mMaking BDD Work for you
49mBDD Is Not Test Automation
