[rspec-users] helper spec not finding rails core helpers

2007-07-30 Thread linojon
Hi, My helper specs were going ok until I added a call to a rails DateHelper method in one of my helpers http://api.rubyonrails.com/classes/ActionView/Helpers/ DateHelper.html#M000574 The helper runs fine from my view templates, just dies in the spec test. I boiled my question down to a simpl

Re: [rspec-users] Any liberally-licensed open source projects out there that make good use of RSpec?

2007-07-30 Thread court3nay
Caboose Sample app --- Courtenay On Jul 30, 2007, at 7:48 PM, "Obie Fernandez" <[EMAIL PROTECTED]> wrote: > I'm trolling for example RSpec code. Any pointers appreciated. > > Cheers, > Obie > ___ > rspec-users mailing list > rspec-users@rubyforge.

[rspec-users] Any liberally-licensed open source projects out there that make good use of RSpec?

2007-07-30 Thread Obie Fernandez
I'm trolling for example RSpec code. Any pointers appreciated. Cheers, Obie ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

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

[rspec-users] avoiding repitition

2007-07-30 Thread David Green
as my rails application gets bigger, I find I'm writing the same generic specs for standard CRUD operations. with 8 controllers so far, and more to come, I'm keen to reduce the duplication. I asked before about generating specs dynamically in this thread : http://www.nabble.com/dynamic-specs-tf39

Re: [rspec-users] Stubbing Observers in rails?

2007-07-30 Thread David Chelimsky
On 7/30/07, Doug Cole <[EMAIL PROTECTED]> wrote: > In most of my tests I'd like to be able to stub out the observers for my > models, but I'm not sure the best way to do this. I doesn't look like there > is a way to stub all instance methods, and I don't seem to be able to stub > early enough to s

[rspec-users] Stubbing Observers in rails?

2007-07-30 Thread Doug Cole
In most of my tests I'd like to be able to stub out the observers for my models, but I'm not sure the best way to do this. I doesn't look like there is a way to stub all instance methods, and I don't seem to be able to stub early enough to stub out the observer as it's instantiated. I can think o

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