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
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
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
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