[Nitro] testing views

George Moschovitis george.moschovitis at gmail.com
Wed Sep 19 03:19:54 EDT 2007

I am sorry, the testing infrastructure in 0.50.0 is not updated to be
compatible with the latest changes. This is in my todo list, but it
will take a bit more time.

The sad truth is that at the moment there are only two really active
developers on this project (me and Tom Sawyer of facets fame) and our
time is limited. I am working full time on Nitro these days so things
are slowly improving. I am sure you can witness this in the increaded
volume of this mailing list.

be patient,

On 9/18/07, Dan North <dan at tastapod.com> wrote:
> Hi there.
> I ran a BDD tutorial at RailsConf on a rails app, and I'm trying to redo
> it in nitro to present a side-by-side example.
> I'm using 0.41.0 and I don't know how to test the output of a view in
> isolation.
> What I want to do is something like:
> - set up some @properties
> - invoke rendering on a .xhtml view (ideally by just passing the view
> name to something)
> - get the xhtml result as a string (or DOM) that I can verify using xpath
> Any ideas?
> Thanks,
> Dan
> ps. I found the TestCase mixin. Any reason why you're hacking
> Test::Unit::TestCase rather than defining a NitroTestCase subclass?
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general


More information about the Nitro-general mailing list