#12 √ resolved
Noel Rappin

Rails 2.0 change breaks shoulda

Reported by Noel Rappin | January 10th, 2008 @ 04:54 PM

Rails changeset 8570 appears to allow setup chains to be declared in tests using the syntax

setup do

end

In any test which uses shoulda contexts with a setup block, this causes the setup block to be run before any tests, not just the tests in that context. It also seems to run the setup block before fixtures are loaded and such, causing pretty much any shoulda test using contexts to break.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »