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