Re: [rspec-users] it_should_behave_like and arguments

2008-08-05 Thread David Chelimsky
On Sat, Aug 2, 2008 at 6:49 PM, Luis Lavena [EMAIL PROTECTED] wrote: Hello list, I'm trying to setup some shared specs to describe a CRUD controller and want to reuse the logic in it. I'm basing most of the examples in latest David's post about it [1] The thing is that looking at the

Re: [rspec-users] it_should_behave_like and arguments

2008-08-05 Thread Luis Lavena
On Tue, Aug 5, 2008 at 10:12 AM, David Chelimsky [EMAIL PROTECTED] wrote: On Sat, Aug 2, 2008 at 6:49 PM, Luis Lavena [EMAIL PROTECTED] wrote: Hello list, I'm trying to setup some shared specs to describe a CRUD controller and want to reuse the logic in it. I'm basing most of the examples

Re: [rspec-users] Rspec doesn't pickup the status code correctly.

2008-08-05 Thread J2M
I'm not having much luck posting here, every other reply seems to go astray! So if I double post sorry! I'm using Rails 2.1 Rspec 1.1.4 Any ideas why this isn't giving the correct response in Rspec but is in the wild? On Aug 4, 4:31 pm, J2M [EMAIL PROTECTED] wrote: On Aug 4, 5:16 am, Steve

[rspec-users] Rails controller specs and private helper methods

2008-08-05 Thread Luis Lavena
Hello guys, Been a while since last time I worked with Rails so is taking me a while get back to full speed. For a specific scenario I'm facing right now, I required to implement a generic REST controller that accept any kind of resource and provide a @collection or @record to work with. I take

Re: [rspec-users] Rails controller specs and private helper methods

2008-08-05 Thread Steve Eley
On Tue, Aug 5, 2008 at 9:09 AM, Luis Lavena [EMAIL PROTECTED] wrote: Do you guys think that will be best to put the resource_class stub inside the actions and create another context to deal with those internals? I would. In fact, if it were really necessary to treat a generic resource as a

Re: [rspec-users] Autotest Doesn't Run Old Test::Unit Tests After Install

2008-08-05 Thread David Chelimsky
On Tue, Aug 5, 2008 at 12:19 PM, Matt Wynne [EMAIL PROTECTED] wrote: Hi, We have a biggish rails app with a bunch of 'legacy' Test::Unit tests, but we're moving over to rspec for all our new work. We're going to be carrying these legacy tests around for a good while though, so they need to

Re: [rspec-users] Spec Server on Windows - missing fork

2008-08-05 Thread David Chelimsky
On Sat, Aug 2, 2008 at 3:43 PM, Luis Lavena [EMAIL PROTECTED] wrote: On Sat, Aug 2, 2008 at 9:04 PM, Mark Wilden [EMAIL PROTECTED] wrote: spec_server is one of the hidden gems of the RSpec world. It's not completely a slam-dunk to use, and I know people who don't use it because of various

Re: [rspec-users] Spec Server on Windows - missing fork

2008-08-05 Thread Jim Gay
On Aug 6, 2008, at 12:04 AM, David Chelimsky wrote: On Sat, Aug 2, 2008 at 3:43 PM, Luis Lavena [EMAIL PROTECTED] wrote: On Sat, Aug 2, 2008 at 9:04 PM, Mark Wilden [EMAIL PROTECTED] wrote: spec_server is one of the hidden gems of the RSpec world. It's not completely a slam-dunk to use,

Re: [rspec-users] [ANN/ADV] Scripted GUI Testing With Ruby book (uses RSpec)

2008-08-05 Thread David Chelimsky
On Tue, Aug 5, 2008 at 11:47 PM, Ian Dees [EMAIL PROTECTED] wrote: Hi, all. The publishers have just thrown the switch to make my new book, Scripted GUI Testing With Ruby, available for purchase in both PDF and analog. Congratulations Ian! http://www.pragprog.com/titles/idgtr The book