Re: [rspec-users] testing controllers using cucumber

2010-02-01 Thread Amit Kulkarni
Oh ok. From your code it seems that we are checking the whole app as you mentioned. I have tested controllers using rspec. So i am not getting which is better to use. Since with Rspec we test the objects and here using cucumber(good for writing scenarios and understanding)we are testing the GUI

Re: [rspec-users] somewhat confused by the help instructions...

2010-02-01 Thread Phillip Koebbe
David Chelimsky wrote: Agreed: http://github.com/rspec/rspec-core/blob/master/features/command_line/example_name_option.feature Thanks, David. I don't want to sound all gushy or anything, but you have got to be one of the most helpful, courteous, knowledgable people I have encountered in

[rspec-users] Testing controller plugin

2010-02-01 Thread Phillip Koebbe
I have just recently started creating some plugins, mainly of the controller variety. I have been looking for a tutorial or other documentation detailing how to go about testing these plugins with RSpec, but have not yet found anything helpful. Can anyone point me toward such a thing?

Re: [rspec-users] somewhat confused by the help instructions...

2010-02-01 Thread Matt Wynne
On 1 Feb 2010, at 14:53, Phillip Koebbe wrote: David Chelimsky wrote: Agreed: http://github.com/rspec/rspec-core/blob/master/features/command_line/example_name_option.feature Thanks, David. I don't want to sound all gushy or anything, but you have got to be one of the most helpful,

Re: [rspec-users] Testing controller plugin

2010-02-01 Thread Matt Wynne
On 1 Feb 2010, at 15:14, Phillip Koebbe wrote: I have just recently started creating some plugins, mainly of the controller variety. I have been looking for a tutorial or other documentation detailing how to go about testing these plugins with RSpec, but have not yet found anything

Re: [rspec-users] testing controllers using cucumber

2010-02-01 Thread steve ross
On Feb 1, 2010, at 1:30 AM, Amit Kulkarni wrote: Oh ok. From your code it seems that we are checking the whole app as you mentioned. I have tested controllers using rspec. So i am not getting which is better to use. Since with Rspec we test the objects and here using cucumber(good for

Re: [rspec-users] somewhat confused by the help instructions...

2010-02-01 Thread Rick DeNatale
On Mon, Feb 1, 2010 at 9:53 AM, Phillip Koebbe phillipkoe...@gmail.com wrote: I don't want to sound all gushy or anything, but you have got to be one of the most helpful, courteous, knowledgable people I have encountered in all my days on the internet. Not to mention that he plays a mean

Re: [rspec-users] somewhat confused by the help instructions...

2010-02-01 Thread Joseph Wilk
On 01/02/2010 16:20, Matt Wynne wrote: On 1 Feb 2010, at 14:53, Phillip Koebbe wrote: David Chelimsky wrote: Agreed: http://github.com/rspec/rspec-core/blob/master/features/command_line/example_name_option.feature Thanks, David. I don't want to sound all gushy or anything, but you

Re: [rspec-users] GET a path in a controller spec

2010-02-01 Thread J. B. Rainsberger
On Sun, Jan 31, 2010 at 17:02, Nick Hoffman li...@ruby-forum.com wrote: One of my controller actions sends a redirect if the request URI begins with /foods/search  34  def search  35    return redirect_to /#{params[:name]} if request.request_uri.match /^\/foods\/search/ Unfortunately, I