[rspec-users] Funny single line of rspec_code

2008-07-22 Thread Britt Mileshosky
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! _

[rspec-users] Specing Law of Demeter methods...

2008-07-17 Thread Britt Mileshosky
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

Re: [rspec-users] Not sure why this controller spec isn't working

2008-07-07 Thread Britt Mileshosky
> 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

Re: [rspec-users] Stopping Example Execution?

2008-07-02 Thread Britt Mileshosky
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

Re: [rspec-users] Stopping Example Execution?

2008-07-02 Thread Britt Mileshosky
> 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: >> >

Re: [rspec-users] Stopping Example Execution?

2008-06-30 Thread Britt Mileshosky
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

Re: [rspec-users] Stopping example execution?

2008-06-29 Thread Britt Mileshosky
> 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

Re: [rspec-users] Stopping example execution?

2008-06-29 Thread Britt Mileshosky
> 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

Re: [rspec-users] Stopping example execution?

2008-06-28 Thread Britt Mileshosky
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: >> >>> >>> >>> --

Re: [rspec-users] Stopping example execution?

2008-06-28 Thread Britt Mileshosky
> 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

Re: [rspec-users] Stopping example execution?

2008-06-28 Thread Britt Mileshosky
> 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: >> >

[rspec-users] Stopping example execution?

2008-06-28 Thread Britt Mileshosky
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

Re: [rspec-users] View Testing: Action with parameters

2008-06-21 Thread Britt Mileshosky
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

Re: [rspec-users] View Testing: Action with parameters

2008-06-21 Thread Britt Mileshosky
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

[rspec-users] View Testing: Action with parameters

2008-06-21 Thread Britt Mileshosky
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