So lastnight I was writing a fake controller to test some before filter action.
I found myself writing this line of code that I thought was funny ... maybe its
a subtle indication i've been programming to much lately.
get :some_action
HA!
_
It's been suggested that instead of doing
-- organization.events.find(params[:id])
that you should be writing
-- organization.get_event( params[:id] )
and the orgs 'get_event' method should look like
-- def get_event( event_id )
-- self.events.find( event_id )
-- end
So are the following v
> Date: Mon, 7 Jul 2008 17:27:36 -0400
> From: [EMAIL PROTECTED]
> To: rspec-users@rubyforge.org
> Subject: [rspec-users] Not sure why this controller spec isn't working
>
> Hey folks,
>
> I've been mocking and stubbing pretty nicely after the various bits of ad
ul 2008 06:15:10 -0500
>> From: [EMAIL PROTECTED]
>> To: rspec-users@rubyforge.org
>> Subject: Re: [rspec-users] Stopping Example Execution?
>>
>> On Mon, Jun 30, 2008 at 5:11 PM, Britt Mileshosky
>> wrote:
>>>
>>> n Sun, Jun 29, 2008 at 12:20
> Date: Wed, 2 Jul 2008 06:15:10 -0500
> From: [EMAIL PROTECTED]
> To: rspec-users@rubyforge.org
> Subject: Re: [rspec-users] Stopping Example Execution?
>
> On Mon, Jun 30, 2008 at 5:11 PM, Britt Mileshosky
> wrote:
>>
>
n Sun, Jun 29, 2008 at 12:20 PM, David Chelimsky wrote:
On Jun 29, 2008, at 11:18 AM, Britt Mileshosky wrote:
However, do you see where something like a return statement or end example
statement could be beneficial?
If you are working from the top down with your controller action execution
> From: [EMAIL PROTECTED]
> To: rspec-users@rubyforge.org
> Date: Sun, 29 Jun 2008 11:20:46 -0500
> Subject: Re: [rspec-users] Stopping example execution?
>
> On Jun 29, 2008, at 11:18 AM, Britt Mileshosky wrote:
>> However, do
> From: [EMAIL PROTECTED]
> To: rspec-users@rubyforge.org
> Date: Sun, 29 Jun 2008 06:09:47 -0500
> Subject: Re: [rspec-users] Stopping example execution?
>
> On Jun 28, 2008, at 7:27 PM, Brit
PROTECTED]
>> To: rspec-users@rubyforge.org
>> Date: Sat, 28 Jun 2008 20:32:26 -0400
>> Subject: Re: [rspec-users] Stopping example execution?
>>
>>
>> On Jun 28, 2008, at 8:27 PM, Britt Mileshosky wrote:
>>
>>>
>>>
>>> --
> From: [EMAIL PROTECTED]
> To: rspec-users@rubyforge.org
> Date: Sat, 28 Jun 2008 20:32:26 -0400
> Subject: Re: [rspec-users] Stopping example execution?
>
>
> On Jun 28, 2008, at 8:27 PM, B
> Date: Sat, 28 Jun 2008 18:24:17 -0500
> From: [EMAIL PROTECTED]
> To: rspec-users@rubyforge.org
> Subject: Re: [rspec-users] Stopping example execution?
>
> On Sat, Jun 28, 2008 at 5:57 PM, Britt Mileshosky
> wrote:
>>
>
Hello, I'm wondering If I am missing something here when creating an example
that sets an expecation at the top or beginning of an action but requires you
to stub / mock everything that follows.
Example:
I want to test that a certain controller is running a before_filter...thats
easy:
- contr
From: [EMAIL PROTECTED]
To: rspec-users@rubyforge.org
Date: Sat, 21 Jun 2008 17:13:14 -0500
Subject: Re: [rspec-users] View Testing: Action with parameters
On Jun 21, 2008, at 5:03 PM, Britt Mileshosky wrote:I'm looking for the
solution to testing for the correct format of a form action
ion with parameters
On Jun 21, 2008, at 5:03 PM, Britt Mileshosky wrote:I'm looking for the
solution to testing for the correct format of a form action with extra
parameters in the url in my view tests.
I'm probably overlooking something simple, but I cannot figure out why this is
not work
I'm looking for the solution to testing for the correct format of a form action
with extra parameters in the url in my view tests.
I'm probably overlooking something simple, but I cannot figure out why this is
not working. Should i event be testing for this
in my view test, or should this be a c
15 matches
Mail list logo