Re: [rspec-users] Troubles with route_for

2010-01-23 Thread Nick Hoffman
Hey guys. I have two different paths that lead to the same controller and action: map.connect 'foods/search/:name', :controller => 'foods', :action => 'search' map.food':name', :controller => 'foods', :action => 'search' Unfortunately, the spec for the second route fails be

Re: [rspec-users] testing named_scope

2010-01-23 Thread Ben Mabey
David Chelimsky wrote: On Mon, Jan 18, 2010 at 4:01 AM, Pat Maddox wrote: On Jan 17, 2010, at 6:17 PM, Nin wrote: Hi! I'm new to rspec and was wondering how named_scopes are usually tested? Is it enough to test that it's defined? or do you need to test the behavior as well? I've been r

Re: [rspec-users] testing named_scope

2010-01-23 Thread Michael Guterl
On Sun, Jan 17, 2010 at 9:17 PM, Nin wrote: > Hi! I'm new to rspec and was wondering how named_scopes are usually > tested? Is it enough to test that it's defined? or do you need to test > the behavior as well? I've been reading around and this seems to be > the tester's choice, i just want to get

Re: [rspec-users] STDIN gets method issue with rspec

2010-01-23 Thread David Chelimsky
On Fri, Jan 22, 2010 at 1:46 PM, gokul murthy wrote: > Hi, > I am new to rspec. I am trying to write a spec for a simple ruby program i.e > class First > def test > a = gets.chomp > return a > end > end > I have tried in different ways test method is called from the spec file. but > gets.chomp is