When hacking on rails 3 I have discovered some missing requires. For
example, when I wanted to use ActionDispatch::Integration::Session, it
get an error because Test::Unit::Assertions is used but 'test/unit/
assertions' is not required.

So I have tried to build a patch for this situation. Well actually,
the creation of the patch is simple, but how do you test (with test/
unit) that we can use this class without requiring its dependency
'test/unit/assertions'? To have a real test case I would need an
isolated environment which would require the class, but would not
require any other dependency. One thing that is hard, is that the
rails test suite itself already loads a lot of necessary dependencies
which would make it hard to write a failing test for these cases (see
'abstract_unit'  in actionpack/lib/test).

Anyhow, when I wrote a first test case I got a chain of dependency
issues so I think it is worth to investigate this, but I can't really
think of a way to include it in the current test suite.

Any suggestions?

Jeroen

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to