rails/rails — pull request #7749 by blowmage (2012-09-24 22:07:36+00:00)
Title: Improve support for minitest's spec DSL

The Rails testing infrastructure is built on minitest, but there are some rough edges if you want to use the spec DSL. Currently its not possible to have a nested describe on a controller test.

describe WidgetsController, :index do
describe "authenticated user" do
it "is accessible" do
assert_response :success
end
end
end

This request makes this possible by adding the ability to resolve constants from the test name. It also includes additional spec registration for mailer, helper, and integration tests. Oh, and a bunch of tests too. (All of this code was taken from minitest-rails.)