I have some controller tests for validity of restful XML responses.
I'm using haml to generate the xml.
When I test externally with curl the response is well-formed XML.
However when I test the controllers with rspec2 the response is invalid XML.
The following code is part of an rspec shared_e
At 10:55 PM -0500 4/11/11, David Chelimsky wrote:
>rspec-1.3.2 is released!
>
>This is primarily a bug-fix release of the rspec-1.x series, and is
>recommended for all users who have not yet upgraded to rspec-2.
>
Thanks for simplifying the gem build process by getting rid of hoe and using
the b
I've created a shared_examples group that helps me dry up the testing of a
large set of similar rails controllers.
These controllers have an html interface but mostly what I am testing with the shared_examples group is the rendering of four
different forms of xml that relate to running a dynami
solved ...
Running the ApplicationHelper spec tests mixed the ApplicationHelper methods
into Object.
Actually I don't remember making the helper being tested or the spec ;-) Might
have been generated by restful authentication ...
Here's what's in spec/helpers/application_helper_spec.rb (which
When I run the a controllers spec test on it's own I get just what I expect.
But when I run the same tests with: rake spec I get some strange errors because ApplicationHelper ends up getting mixed into my
ActiveRecord model instances.
Is this normal? It seems nutty to me -- maybe it's a proble