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

2009-07-21 Thread Stephen Eley
2009/7/22 internetchris : > > So if that's the case is the main use of rspec within a rails app for > the model and validation testing? For a lot of people, yes. It's certainly a fair generalization that model specs are the easiest and most straightforward specs in Rails. If you're applying MVC w

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

2009-07-21 Thread internetchris
Hey guys, I appreciate the insight, and this brings me to my next question, and actually the next chapter in the book (specing models). I read that "most" developers shy away from view specs (for the most part - not always), and then if I understand both of you correctlyeach of you tend to "do

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

2009-07-21 Thread Stephen Eley
2009/7/21 internetchris : > When writing specs for controllers am I always > going to mock the model? Are controllers always isolated from the > actual model? Hi Chris, Pretty insightful of you. This is one of those philosophical questions that tends to keep coming up. The only valid answer to

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

2009-07-21 Thread Ben Mabey
internetchris wrote: I have one additional question after thinking about this for a while. Forgive me if I'm about to read this in the book, It came to mind so I thought I would ask. When writing specs for controllers am I always going to mock the model? Are controllers always isolated from the a

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

2009-07-21 Thread internetchris
I have one additional question after thinking about this for a while. Forgive me if I'm about to read this in the book, It came to mind so I thought I would ask. When writing specs for controllers am I always going to mock the model? Are controllers always isolated from the actual model? If that's

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-20 Thread Stephen Eley
On Mon, Jul 20, 2009 at 11:05 PM, Chris Sund wrote: > > I am finally to the point in the rspec book where it describes how to > implement controller specs, so I thought what the heck, I'll give it a > try. Heh. Points to you for ambition! You might not have realized this (because the RSpec book

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

2009-07-20 Thread Ben Mabey
Chris Sund wrote: Hey Everyone, I am finally to the point in the rspec book where it describes how to implement controller specs, so I thought what the heck, I'll give it a try. I have an app I have been working on (Inside out) that I needed to get test specs written for before I continue on wit

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

2009-07-20 Thread Chris Sund
Hey Everyone, I am finally to the point in the rspec book where it describes how to implement controller specs, so I thought what the heck, I'll give it a try. I have an app I have been working on (Inside out) that I needed to get test specs written for before I continue on with the app. Now that