Re: [rspec-users] newbie: need help to write the spec for helper

2009-01-07 Thread Zach Dennis
On Wed, Dec 31, 2008 at 11:11 AM, aslak hellesoy wrote: > > > On Wed, Dec 31, 2008 at 5:02 PM, David Chelimsky > wrote: >> >> On Wed, Dec 31, 2008 at 9:49 AM, aslak hellesoy >> wrote: >> > >> > >> > On Wed, Dec 31, 2008 at 4:21 PM, David Chelimsky >> > wrote: >> >> >> >> On Wed, Dec 31, 2008 at

Re: [rspec-users] newbie: need help to write the spec for helper

2009-01-03 Thread Matt Wynne
On 31 Dec 2008, at 16:11, aslak hellesoy wrote: On Wed, Dec 31, 2008 at 5:02 PM, David Chelimsky wrote: > So do you recommend never doing helper specs? I never said never :-) Here is my manifesto styled take on this: "I favour testing directly accessible APIs over indirectly accessible o

Re: [rspec-users] newbie: need help to write the spec for helper

2008-12-31 Thread aslak hellesoy
On Wed, Dec 31, 2008 at 5:02 PM, David Chelimsky wrote: > On Wed, Dec 31, 2008 at 9:49 AM, aslak hellesoy > wrote: > > > > > > On Wed, Dec 31, 2008 at 4:21 PM, David Chelimsky > > wrote: > >> > >> On Wed, Dec 31, 2008 at 8:00 AM, Nasir Jamal > wrote: > >> > Hi, > >> > > >> > I am a rspec newbie

Re: [rspec-users] newbie: need help to write the spec for helper

2008-12-31 Thread David Chelimsky
On Wed, Dec 31, 2008 at 9:49 AM, aslak hellesoy wrote: > > > On Wed, Dec 31, 2008 at 4:21 PM, David Chelimsky > wrote: >> >> On Wed, Dec 31, 2008 at 8:00 AM, Nasir Jamal wrote: >> > Hi, >> > >> > I am a rspec newbie, can anyone guide me on how to write a spec for the >> > below helper. >> > >> >

Re: [rspec-users] newbie: need help to write the spec for helper

2008-12-31 Thread aslak hellesoy
On Wed, Dec 31, 2008 at 4:21 PM, David Chelimsky wrote: > On Wed, Dec 31, 2008 at 8:00 AM, Nasir Jamal wrote: > > Hi, > > > > I am a rspec newbie, can anyone guide me on how to write a spec for the > > below helper. > > > > module MyHelper > > def test > >link_to('MyLink', resources_path) if

Re: [rspec-users] newbie: need help to write the spec for helper

2008-12-31 Thread David Chelimsky
On Wed, Dec 31, 2008 at 8:00 AM, Nasir Jamal wrote: > Hi, > > I am a rspec newbie, can anyone guide me on how to write a spec for the > below helper. > > module MyHelper > def test >link_to('MyLink', resources_path) if @categories || @sub_categories > end > end > > @categories is an instance

[rspec-users] newbie: need help to write the spec for helper

2008-12-31 Thread Nasir Jamal
Hi, I am a rspec newbie, can anyone guide me on how to write a spec for the below helper. module MyHelper  def test    link_to('MyLink', resources_path) if @categories || @sub_categories  end end @categories is an instance of Category model @sub_categories is an instance of SubCategory model