[rspec-users] rendering xml with haml through render_template is invalid

2011-09-08 Thread Stephen Bannasch
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

Re: [rspec-users] rspec-1.3.2 is released!

2011-04-12 Thread Stephen Bannasch
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

[rspec-users] questions about meta-programming in a shared_examples group

2010-05-10 Thread Stephen Bannasch
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

Re: [rspec-users] running: 'rake spec' mixes ApplicationHelper into my ActiveRecord model instances

2010-04-22 Thread Stephen Bannasch
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

[rspec-users] running: 'rake spec' mixes ApplicationHelper into my ActiveRecord model instances

2010-04-22 Thread Stephen Bannasch
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