Re: [rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-31 Thread Ashley Moran
On 30 Jul 2007, at 12:10, David Chelimsky wrote: > I've definitely seen advice to start with models before, but I've not > seen anything that says "if you're using Test::Unit, you should start > with models". It's more a development philosophy than a tool issue. I see this debate come round now

Re: [rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-30 Thread Mikel Lindsaar
> I tend to work in small, complete vertical slices rather than > completing one layer at a time. So rather than doing the whole view > first, I'd do one small aspect of it and then push right down to the > controller action that supports that aspect of it, then push down to > the model, then back

Re: [rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-30 Thread David Chelimsky
On 7/30/07, Mikel Lindsaar <[EMAIL PROTECTED]> wrote: > > I would tend to disagree. RSpec is a Behaviour Driven Development > > tool. The idea is that you write a small example of behaviour FIRST, > > and use that example to drive the implementation. The reason you use > > examples to drive impleme

Re: [rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-30 Thread Mikel Lindsaar
> I would tend to disagree. RSpec is a Behaviour Driven Development > tool. The idea is that you write a small example of behaviour FIRST, > and use that example to drive the implementation. The reason you use > examples to drive implementation comes from the idea in Test Driven > Development that

Re: [rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-30 Thread David Chelimsky
On 7/30/07, Daniel N <[EMAIL PROTECTED]> wrote: > On 7/30/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 7/30/07, Daniel N <[EMAIL PROTECTED]> wrote: > > > On 7/30/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > > On 7/30/07, Daniel N < [EMAIL PROTECTED]> wrote: > > > > > On 7/30/07, Da

Re: [rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-30 Thread Daniel N
On 7/30/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 7/30/07, Daniel N <[EMAIL PROTECTED]> wrote: > > On 7/30/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > On 7/30/07, Daniel N <[EMAIL PROTECTED]> wrote: > > > > On 7/30/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > > > On 7/3

Re: [rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-30 Thread David Chelimsky
On 7/30/07, Daniel N <[EMAIL PROTECTED]> wrote: > On 7/30/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 7/30/07, Daniel N <[EMAIL PROTECTED]> wrote: > > > On 7/30/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > > On 7/30/07, Mikel Lindsaar < [EMAIL PROTECTED]> wrote: > > > > > I find m

Re: [rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-30 Thread Daniel N
On 7/30/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 7/30/07, Daniel N <[EMAIL PROTECTED]> wrote: > > On 7/30/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > On 7/30/07, Mikel Lindsaar <[EMAIL PROTECTED]> wrote: > > > > I find myself doing the same thing... the, open the model and typ

Re: [rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-30 Thread David Chelimsky
On 7/30/07, Daniel N <[EMAIL PROTECTED]> wrote: > On 7/30/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 7/30/07, Mikel Lindsaar <[EMAIL PROTECTED]> wrote: > > > I find myself doing the same thing... the, open the model and type in > > > the it shoulds... > > > > > > I ws thinking along the

Re: [rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-30 Thread Daniel N
On 7/30/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 7/30/07, Mikel Lindsaar <[EMAIL PROTECTED]> wrote: > > I find myself doing the same thing... the, open the model and type in > > the it shoulds... > > > > I ws thinking along the same line... probably all that would be needed > > is a ra

Re: [rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-30 Thread David Chelimsky
On 7/30/07, Mikel Lindsaar <[EMAIL PROTECTED]> wrote: > I find myself doing the same thing... the, open the model and type in > the it shoulds... > > I ws thinking along the same line... probably all that would be needed > is a rake task that hooks into the Mock class and runs all the specs > takin

Re: [rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-30 Thread Daniel N
On 7/30/07, Mikel Lindsaar <[EMAIL PROTECTED]> wrote: > > I find myself doing the same thing... the, open the model and type in > the it shoulds... I think it would need to do a bit more. If I call mock_model( User ) and the User class doesn't exist yet that will blow it up. I guess at that poi

Re: [rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-30 Thread David Chelimsky
On 7/30/07, Mikel Lindsaar <[EMAIL PROTECTED]> wrote: > David, true :) > > I think I was more mixing up "Test::Unit" and the unit directory under > test in terms of Rails... the unit tests are to the models... ergo... > my definitions were mixed up :) Makes sense. Thanks for playing. Cheers, Dav

Re: [rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-30 Thread Mikel Lindsaar
David, true :) I think I was more mixing up "Test::Unit" and the unit directory under test in terms of Rails... the unit tests are to the models... ergo... my definitions were mixed up :) Anyway... back to coding :) Mikel On 7/30/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > On 7/30/07, Mike

Re: [rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-30 Thread David Chelimsky
On 7/30/07, Mikel Lindsaar <[EMAIL PROTECTED]> wrote: > Dear Nathan, > Starting with views and working "backwards" from a Test::Unit point of > view has definately opened up a lot of RSpec doors for me. I've definitely seen advice to start with models before, but I've not seen anything that says "

Re: [rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-30 Thread Mikel Lindsaar
I find myself doing the same thing... the, open the model and type in the it shoulds... I ws thinking along the same line... probably all that would be needed is a rake task that hooks into the Mock class and runs all the specs taking not of all the stubs and mocks method calls that are made. The

Re: [rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-30 Thread Daniel N
On 7/30/07, Mikel Lindsaar <[EMAIL PROTECTED]> wrote: > > Dear Nathan, > > What you are sayiing is correct, and in terms of Ruby on Rails, BDD > _IS_ View Driven development... or at least it should be IMHO. > > At the end of the day, the only thing that matters in a Rails App is > the Behaviour sh

Re: [rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-30 Thread Mikel Lindsaar
Dear Nathan, What you are sayiing is correct, and in terms of Ruby on Rails, BDD _IS_ View Driven development... or at least it should be IMHO. At the end of the day, the only thing that matters in a Rails App is the Behaviour shown to the user, who has as their only interface, the View. The use

Re: [rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-29 Thread David Chelimsky
On 7/29/07, Nathan Sutton <[EMAIL PROTECTED]> wrote: > I want to do View-Driven-Development by Behavior-Driven-Development, > but I'm stumped really where to begin. Ideally I'd like to see a > tutorial or something that walks though it, or browse through some > projects using RSpec for the views,

[rspec-users] View-Driven-Development by Behavior-Driven-Development and RSpec

2007-07-28 Thread Nathan Sutton
One of the things that turned me on to BDD and RSpec was speccing views first, that the desired end would drive the development. In previous projects while using Test::Unit I would try to make educated guesses as to what would be needed in the model and controllers to derive the view witho