Re: [rspec-users] [Rails] rails view helpers, BDD, and what to mock

2010-09-19 Thread J. B. Rainsberger
On Fri, Sep 17, 2010 at 16:48, Doug E. wrote: > I'm trying to understand BDD and proper testing technique. I'm testing > a rails view helper method that checks user roles to see if a link > should be shown. I'm using rails 2.3.8 and rspec version 1.3.0. My > helper looks like this: > > # welcom

Re: [rspec-users] [Rails] rails view helpers, BDD, and what to mock

2010-09-18 Thread Myron Marston
On Sep 18, 11:52 am, "Doug E." wrote: > On Sep 17, 9:16 pm, Myron Marston wrote: > > > > > > > On Sep 17, 12:48 pm, "Doug E." wrote: > > > > Hi, > > > > I'm trying to understand BDD and proper testing technique. I'm testing > > > a rails view helper method that checks user roles to see if a li

Re: [rspec-users] [Rails] rails view helpers, BDD, and what to mock

2010-09-18 Thread Doug E.
On Sep 17, 9:16 pm, Myron Marston wrote: > On Sep 17, 12:48 pm, "Doug E." wrote: > > > > > > > Hi, > > > I'm trying to understand BDD and proper testing technique. I'm testing > > a rails view helper method that checks user roles to see if a link > > should be shown. I'm using rails 2.3.8 and rs

Re: [rspec-users] [Rails] rails view helpers, BDD, and what to mock

2010-09-17 Thread Myron Marston
On Sep 17, 12:48 pm, "Doug E." wrote: > Hi, > > I'm trying to understand BDD and proper testing technique. I'm testing > a rails view helper method that checks user roles to see if a link > should be shown. I'm using rails 2.3.8 and rspec version 1.3.0.  My > helper looks like this: > > # welcom

[rspec-users] [Rails] rails view helpers, BDD, and what to mock

2010-09-17 Thread Doug E.
Hi, I'm trying to understand BDD and proper testing technique. I'm testing a rails view helper method that checks user roles to see if a link should be shown. I'm using rails 2.3.8 and rspec version 1.3.0. My helper looks like this: # welcome_helper.rb module WelcomeHelper def manage_samples_li