[rspec-users] rspec

Jonathan Linowes linojon at gmail.com
Mon Jun 4 16:01:31 EDT 2007

I have it working, in part, on a couple of my controllers, included a  
nested resource one.

Then I decided to try and make a spec for the make_resourceful test  
included with the plugin. I started with the  
people_controller_spec.rb . There are some questions (see source),  
especially the xml.

To get the test going I installed rspec, run script/generate rspec

To begin with a default spec, i ran
   $ script/generate rspec_scaffold person
and do not overwrite files

I'll keep working on this a bit at a time. I really want to get the  
nested resource controllers going too.

But if anyone has answers to the issues I've run into so far, please  
let me know.

I've attached a copy of the people_controller_spec.rb , and for  
reference the people_controller.rb file too

(I'm also cross-posting this on the rspec list)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: people_controller.rb
Type: text/x-ruby-script
Size: 870 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/rspec-users/attachments/20070604/cbebb73d/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: people_controller_spec.rb
Type: text/x-ruby-script
Size: 8345 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/rspec-users/attachments/20070604/cbebb73d/attachment-0003.bin 
-------------- next part --------------

On Jun 4, 2007, at 8:50 AM, Robert Dempsey wrote:

> Jonathan,
> I am in the same boat as you are. Hopefully someone has it working :)
> Rob
> On Jun 4, 4:44 am, Jonathan Linowes <lino... at gmail.com> wrote:
>> Anyone here using rspec with make_resourceful?
>> I could really use some sample specs,
>> I've been having trouble mocking and stubbing the controller actions.
>> Thanks.
>> linoj
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google  
> Groups "make_resourceful" group.
> To post to this group, send email to make_resourceful at googlegroups.com
> To unsubscribe from this group, send email to make_resourceful- 
> unsubscribe at googlegroups.com
> For more options, visit this group at http://groups.google.com/ 
> group/make_resourceful?hl=en
> -~----------~----~----~----~------~----~------~--~---

More information about the rspec-users mailing list