assaf/vanity — pull request #86 by skanev (2011-11-23 20:51:13+00:00)
Title: Fix broken view specs when vanity is loaded

When vanity is loaded, views specs suddenly start breaking.

This happens because `ActionController::TestCase` gets loaded before the application itself. That way `ActionController::TestCase` does not get the opportunity to define all helpers that the application will use. In the end, there are less helpers available in the spec.

This can be solved by rewriting the Rails extension to do its thing after the application has loaded (as it should). I have just move the railtie around and tweaked it to load later.

This also fixes #75.

Cheers!