Re: [rspec-users] Deprecating the mocking framework?

2007-09-02 Thread Pat Maddox
On 9/1/07, Wilson Bilkovich <[EMAIL PROTECTED]> wrote: > On 9/1/07, rupert <[EMAIL PROTECTED]> wrote: > > > > On 1 Sep 2007, at 10:04, Tom Stuart wrote: > > > > > On 1 Sep 2007, at 09:31, rupert wrote: > > >>> Are we planning on dumping the mock framework in favor of using > > >>> Mocha > > >> The

Re: [rspec-users] Deprecating the mocking framework?

2007-09-02 Thread Priit Tamboom
On 9/2/07, Wilson Bilkovich <[EMAIL PROTECTED]> wrote: > On 9/1/07, rupert <[EMAIL PROTECTED]> wrote: > > > > On 1 Sep 2007, at 10:04, Tom Stuart wrote: > > > > > On 1 Sep 2007, at 09:31, rupert wrote: > > >>> Are we planning on dumping the mock framework in favor of using > > >>> Mocha > > >> The

Re: [rspec-users] testing behaviour or testing code?

2007-09-02 Thread David Chelimsky
On 9/2/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > On 8/24/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 8/24/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > > > On 8/24/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > > describe Widget, "class" do > > > > it "should provide a list of wid

Re: [rspec-users] testing behaviour or testing code?

2007-09-02 Thread Pat Maddox
On 9/2/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > On 9/2/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > > On 8/24/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > On 8/24/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > > > > On 8/24/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > > > descri

Re: [rspec-users] testing behaviour or testing code?

2007-09-02 Thread Rodrigo Alvarez Fernández
I have an articleabout this in my blog, with a controller spec example, testing just behaviour and not the code. Please, comment it and tell me what you think. I guess that with the new Story runner, this approach will be even bett

Re: [rspec-users] testing behaviour or testing code?

2007-09-02 Thread David Chelimsky
On 9/2/07, Rodrigo Alvarez Fernández <[EMAIL PROTECTED]> wrote: > I have an article about this in my blog, with a controller spec example, > testing just behaviour and not the code. Please, comment it and tell me what > you think. I added comments on the blog: http://papipo.blogspot.com/2007/08/bd

Re: [rspec-users] testing behaviour or testing code?

2007-09-02 Thread Rodrigo Alvarez Fernández
On 9/2/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 9/2/07, Rodrigo Alvarez Fernández <[EMAIL PROTECTED]> wrote: > > I have an article about this in my blog, with a controller spec example, > > testing just behaviour and not the code. Please, comment it and tell me > what > > you think. >

Re: [rspec-users] testing behaviour or testing code?

2007-09-02 Thread David Chelimsky
On 9/2/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > On 9/2/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 9/2/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > > > On 8/24/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > > On 8/24/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > > > > > On 8/24/07,

Re: [rspec-users] Deprecating the mocking framework?

2007-09-02 Thread David Chelimsky
On 9/2/07, Wilson Bilkovich <[EMAIL PROTECTED]> wrote: > On 9/1/07, rupert <[EMAIL PROTECTED]> wrote: > > > > On 1 Sep 2007, at 10:04, Tom Stuart wrote: > > > > > On 1 Sep 2007, at 09:31, rupert wrote: > > >>> Are we planning on dumping the mock framework in favor of using > > >>> Mocha > > >> The

Re: [rspec-users] Deprecating the mocking framework?

2007-09-02 Thread Scott Taylor
On Sep 2, 2007, at 12:55 PM, David Chelimsky wrote: > On 9/2/07, Wilson Bilkovich <[EMAIL PROTECTED]> wrote: >> On 9/1/07, rupert <[EMAIL PROTECTED]> wrote: >>> >>> On 1 Sep 2007, at 10:04, Tom Stuart wrote: >>> On 1 Sep 2007, at 09:31, rupert wrote: >> Are we planning on dumping the mo

Re: [rspec-users] Deprecating the mocking framework?

2007-09-02 Thread Andrew WC Brown
I think that makes sense. Which do you recommend? Flexmock or Mocha? On 9/2/07, Scott Taylor <[EMAIL PROTECTED]> wrote: > > > On Sep 2, 2007, at 12:55 PM, David Chelimsky wrote: > > > On 9/2/07, Wilson Bilkovich <[EMAIL PROTECTED]> wrote: > >> On 9/1/07, rupert <[EMAIL PROTECTED]> wrote: > >>> >

Re: [rspec-users] Deprecating the mocking framework?

2007-09-02 Thread David Chelimsky
On 9/2/07, Scott Taylor <[EMAIL PROTECTED]> wrote: > > On Sep 2, 2007, at 12:55 PM, David Chelimsky wrote: > > > On 9/2/07, Wilson Bilkovich <[EMAIL PROTECTED]> wrote: > >> On 9/1/07, rupert <[EMAIL PROTECTED]> wrote: > >>> > >>> On 1 Sep 2007, at 10:04, Tom Stuart wrote: > >>> > On 1 Sep 2007

Re: [rspec-users] How do you keep mocks updated without pain?

2007-09-02 Thread Jay Levitt
On 8/29/2007 6:19 PM, Zach Dennis wrote: > In rspec, controller, model and view specs are just unit tests/specs. And that's really the key; in Rails Test::Unit, model tests are unit tests, and controller tests are higher-level "functional" tests. So you never get to unit-test your controllers.

Re: [rspec-users] Deprecating the mocking framework?

2007-09-02 Thread Scott Taylor
> > Well, it's not simply a matter of US maintaining it. It's a matter of > it being maintained at all in light of the fact that mocha and > flexmock exist. Put simply, there never should have been an rspec mock > framework. > > But here we are. > > In my view, we either put the thing to sleep or k

Re: [rspec-users] testing behaviour or testing code?

2007-09-02 Thread Jay Levitt
On 9/2/2007 12:43 PM, David Chelimsky wrote: > The problem we face is that AR promises huge productivity gains for > the non TDD-er, and challenges the thinking of the die-hard TDD-er. > > I've gone back and forth about whether it's OK to test validations like this: > > it "should validate_presen

Re: [rspec-users] Deprecating the mocking framework?

2007-09-02 Thread Scott Taylor
> > Well, it's not simply a matter of US maintaining it. It's a matter of > it being maintained at all in light of the fact that mocha and > flexmock exist. Put simply, there never should have been an rspec mock > framework. > > But here we are. > > In my view, we either put the thing to sleep or k

Re: [rspec-users] testing behaviour or testing code?

2007-09-02 Thread David Chelimsky
On 9/2/07, Jay Levitt <[EMAIL PROTECTED]> wrote: > On 9/2/2007 12:43 PM, David Chelimsky wrote: > > The problem we face is that AR promises huge productivity gains for > > the non TDD-er, and challenges the thinking of the die-hard TDD-er. > > > > I've gone back and forth about whether it's OK to t

Re: [rspec-users] Deprecating the mocking framework?

2007-09-02 Thread Zach Dennis
On 9/2/07, Andrew WC Brown <[EMAIL PROTECTED]> wrote: > I think that makes sense. > > Which do you recommend? Flexmock or Mocha? > I wouldn't recommend either of them by themselves, at least the current way they sit. Jim Weirich may be adding globally ordered strict mocks, which if he does then I

Re: [rspec-users] testing behaviour or testing code?

2007-09-02 Thread Pat Maddox
On 9/2/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > On 9/2/07, Jay Levitt <[EMAIL PROTECTED]> wrote: > > On 9/2/2007 12:43 PM, David Chelimsky wrote: > > > The problem we face is that AR promises huge productivity gains for > > > the non TDD-er, and challenges the thinking of the die-hard TDD-e

[rspec-users] blog post on story runner

2007-09-02 Thread David Chelimsky
Here's an excellent blog post on Story Runner, which will be part of the next release and is undergoing active development in trunk: http://evang.eli.st/blog/2007/9/1/user-stories-with-rspec-s-story-runner ___ rspec-users mailing list rspec-users@rubyfor

Re: [rspec-users] blog post on story runner

2007-09-02 Thread Pat Maddox
On 9/2/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > Here's an excellent blog post on Story Runner, which will be part of > the next release and is undergoing active development in trunk: > > http://evang.eli.st/blog/2007/9/1/user-stories-with-rspec-s-story-runner > _