This reverts commit b3a2af7. Basically, we have an issue with ActionMailer::Base. Given this code, we end up with ``` private method `new' called for ActionMailer::Base:Class ``` And That's Bad (tm). Still that commit should point the way to making it happen somehow.
We no longer need to do specific things before tests run. The view_context now loads up appropriate things if they don't exist. I ended up getting rid of two spec files; one tested things that were very simple, but since we're not mocking Rails anymore, they're much harder to test. The second was the stuff that I removed. :)
…omparing to string
Decorated associations implement Enumerable, but they also should emulate the AR::Finder stuff. @person = PersonDecorator.find(params[:person_id]) @pet = @person.pets.find(params[:id]) The problem is, pets delegated to Enumerable always, instead of to the finder method. This patch makes it delegate to Enumerable if a block is given, and Finder if not. Fixes #214.