[rspec-users] Keeping my integration specs DRY..

2011-07-25 Thread internetchris
Hi Group, I'm finally taking the time to implement tests in some of my old apps. I'm using Rails 2.3.5, Rspec 1.3.1, Rspec-rails 1.3.3, and capybara. Here's an example of my first test, but I'm wondering how I setup the login routine so I can use it in future specs without repeating the method. S

[rspec-users] Noob (mock/stub) ActiveMerchant..

2011-10-31 Thread internetchris
Hi Group I'm still waiting for the light to come on with stubbing/mocking and the syntax for each. I have simple method in my Order class like so def credit_card ActiveMerchant::Billing::CreditCard.new( :type => card_type, :number => card_number,

Re: [rspec-users] Rspec book issue (mastermind example)

2009-07-06 Thread internetchris
Beautiful, that worked great. I sent an e-mail to the pragmatic support people to get the latest version of the book. For some reason it's not showing up in my Bookshelf. Thanks David On Jul 6, 12:01 pm, David Chelimsky wrote: > On Mon, Jul 6, 2009 at 12:51 PM, Chris > > > > Sund wrote: > > Hey

Re: [rspec-users] Noob syntax questions regarding rspec book...

2009-07-08 Thread internetchris
Hey everyone, I appreciate the replies. After I posted I realized I was looking at ruby code. It seems this is where my learning curve is going to take a leap. I understand Rails, I am starting to understand Rspec and Cucumber, and I understand programming. This is my second language, but it's the

Re: [rspec-users] Noob syntax questions regarding rspec book...

2009-07-08 Thread internetchris
In addition - Ben thanks for the link, I just checked it out. Rubular seems like an awesome little tool and I will bookmark the page. I really appreciate all of the help and hope I can return the favor one day. Thanks! Chris On Jul 8, 10:43 pm, internetchris wrote: > Hey everyone, &g

Re: [rspec-users] explanation of "describe" vs "context"...

2009-07-12 Thread internetchris
Thanks, that helps me understand better. On Jul 12, 1:48 pm, Scott Taylor wrote: > Chris Sund wrote: > > Hey everyone, > > > This is a noob question. I'm not grasping the difference between > > "describe" and "context" in my spec file. As an example, what's the > > difference with this... > > > d

Re: [rspec-users] noob question (trying to understand view specs vs webrat and cucumber)...

2009-07-15 Thread internetchris
Tom, I appreciate the reply... So would I be correct in saying that I should develop all of my spec tests first, and then finish it up by running some cucumber tests? Thanks! Chris On Jul 15, 11:34 pm, Tom Stuart wrote: > Hi Chris, > > On 16 Jul 2009, at 04:14, Chris Sund wrote: > > > Can som

Re: [rspec-users] noob question (trying to understand view specs vs webrat and cucumber)...

2009-07-16 Thread internetchris
rspec correlation now. On anything new I will start with Cucumber and then to rspec to iron out the actual code. Thanks! Chris On Jul 16, 12:47 am, Andrew Timberlake wrote: > On Thu, Jul 16, 2009 at 7:46 AM, > > internetchris wrote: > > Tom, > > > I appreciate the reply... &

Re: [rspec-users] My very fist spec file (not sure what's wrong..)

2009-07-21 Thread internetchris
Ben that worked perfectly I appreciate the help. Stephen, I appreciate the encouragement, it feels daunting to be learning all of this at once, but each day I bite off a little more understanding. It's funny you mention scuba diving - "way back when" right out of high school I thought it would be

Re: [rspec-users] My very fist spec file (not sure what's wrong..)

2009-07-21 Thread internetchris
hat's the case then using cucumber with webrat is the only time I will test the complete stack right? Just wondering if I understand this correctly. Thanks Chris On Jul 21, 9:25 am, internetchris wrote: > Ben that worked perfectly I appreciate the help. > > Stephen, I appreciate th

Re: [rspec-users] My very fist spec file (not sure what's wrong..)

2009-07-21 Thread internetchris
t; understand it so I can develop better apps. Thanks again! Chris On Jul 21, 9:43 pm, Stephen Eley wrote: > 2009/7/21 internetchris : > > > When writing specs for controllers am I always > > going to mock the model? Are controllers always isolated from the > > actual mo