[rspec-users] How to write test cases in rcov

2009-02-06 Thread Brijesh Shah
Hi I am using rcov to generate code coverage. But I don't know how to write cases for that... I have installed rcov gem and and execute rcov test/*.rb command. It shows me some code coverage in files. Can anyone help me by giving example that how to write test cases and where to write... Thank

Re: [rspec-users] [OT] Object Mother vs Test Data Builder (was Jay Fields' blog on developer testing)

2009-02-06 Thread s.ross
On Feb 6, 2009, at 10:21 AM, Scott Taylor wrote: On Feb 6, 2009, at 12:50 PM, Stephen Eley wrote: On Fri, Feb 6, 2009 at 12:17 PM, Fernando Perez forum.com> wrote: The next big step will be specing controllers, as it is more painful than models, but now that my controllers are ripped I guess

Re: [rspec-users] redirects while using subdomains not working in 4.1

2009-02-06 Thread Tom Hoen
Zach Dennis wrote: > > Correction -- I believe his problem forces the problem in my ticket to > be solved. I don't know if my patch solves his problem. > Zach - Thanks for the quick patch I grabbed your code, but it did not solve the problem. Here is what I am seeing. When fully_qualify_curr

Re: [rspec-users] [Cucumber] Progress Bar

2009-02-06 Thread nicholas a. evans
Yay! Thanks for this. I kept saying "I'll get around to this... tomorrow!" And well... :-) -- Nick On Thu, Feb 5, 2009 at 6:43 PM, Matt Wynne wrote: > Inspired by Nick Evans' RSpec progress bar[1], I had a little crack at > implementing the progress bar for cucumber, 'cause I want to know ho

Re: [rspec-users] redirects while using subdomains not working in 4.1

2009-02-06 Thread Josh Knowles
On Fri, Feb 6, 2009 at 10:20 AM, Zach Dennis wrote: > Perhaps Bryan or Josh could look at these. In the meantime I have > pushed an updated branch which includes all of webrat 4.1. Hopefully > in the meantime this will solve the issue for you: > > http://github.com/zdennis/webrat/tree/make_curr

Re: [rspec-users] [OT] Object Mother vs Test Data Builder (was Jay Fields' blog on developer testing)

2009-02-06 Thread Scott Taylor
On Feb 6, 2009, at 12:50 PM, Stephen Eley wrote: On Fri, Feb 6, 2009 at 12:17 PM, Fernando Perez forum.com> wrote: The next big step will be specing controllers, as it is more painful than models, but now that my controllers are ripped I guess it will be easier. I've stopped. Mostly beca

Re: [rspec-users] [OT] Object Mother vs Test Data Builder (was Jay Fields' blog on developer testing)

2009-02-06 Thread Joaquin Rivera Padron
hey fernando, maybe you want to take a look at http://www.patmaddox.com/blog/2009/1/15/how-i-test-controllers-2009-remix and give Cucumber a try regarding controllers spec-ing hth, joaquin ___ rspec-users mailing list rspec-users@rubyforge.org http://ruby

Re: [rspec-users] [OT] Object Mother vs Test Data Builder (was Jay Fields' blog on developer testing)

2009-02-06 Thread Stephen Eley
On Fri, Feb 6, 2009 at 12:17 PM, Fernando Perez wrote: > > The next big step will be specing controllers, as it is more painful > than models, but now that my controllers are ripped I guess it will be > easier. I've stopped. Mostly because of the question Jay asks in that article: "Why are you t

[rspec-users] RecordNotFound bubbling thru to cucumber

2009-02-06 Thread Jeff Talbot
Hello, I have a controller action that raises a RecordNotFound exception if you're not allowed to see something. In my global application controller (application.rb), I catch these and render the 404 template. But when I run cucumber (using webrat), it's getting the full stacktrace (the step blows

Re: [rspec-users] redirects while using subdomains not working in 4.1

2009-02-06 Thread Zach Dennis
On Fri, Feb 6, 2009 at 9:12 AM, Tom Hoen wrote: > Zach Dennis wrote: > >> >> Were you using one of my branches, and was it working for you? >> >> I just pulled down the latest webrat and installed it on a project >> that uses subdomains, and all of the features are still passing. > > Zach - > > I

Re: [rspec-users] [OT] Object Mother vs Test Data Builder (was Jay Fields' blog on developer testing)

2009-02-06 Thread Fernando Perez
Pat Maddox wrote: > On Thu, Feb 5, 2009 at 8:17 AM, Ben Mabey wrote: >> Any thoughts? Are Ruby's Object Mothers really Test Data Builders? > > Here's what I think is important: > > * Make fixture setup explicit by inlining it on a per example/group > basis > * Keep fixture setup short by hidin

Re: [rspec-users] Is RSpec Ruby1.9 ready?

2009-02-06 Thread David Chelimsky
On Fri, Feb 6, 2009 at 10:43 AM, David Chelimsky wrote: > On Fri, Feb 6, 2009 at 9:41 AM, Yi Wen wrote: >> Hi, >> >> I saw a message on Nov, 2008 in this mailing list from David: >> >> "I'm not sure how to fix that problem, but before you go much further >> you should know that RSpec does not yet

Re: [rspec-users] Is RSpec Ruby1.9 ready?

2009-02-06 Thread David Chelimsky
On Fri, Feb 6, 2009 at 9:41 AM, Yi Wen wrote: > Hi, > > I saw a message on Nov, 2008 in this mailing list from David: > > "I'm not sure how to fix that problem, but before you go much further > you should know that RSpec does not yet run under 1.9. It's something > I want to raise in priority soon

Re: [rspec-users] redirects while using subdomains not working in 4.1

2009-02-06 Thread Zach Dennis
On Fri, Feb 6, 2009 at 10:20 AM, Zach Dennis wrote: > On Fri, Feb 6, 2009 at 9:12 AM, Tom Hoen wrote: >> Zach Dennis wrote: >> >>> >>> Were you using one of my branches, and was it working for you? >>> >>> I just pulled down the latest webrat and installed it on a project >>> that uses subdomains

[rspec-users] Is RSpec Ruby1.9 ready?

2009-02-06 Thread Yi Wen
Hi, I saw a message on Nov, 2008 in this mailing list from David: "I'm not sure how to fix that problem, but before you go much further you should know that RSpec does not yet run under 1.9. It's something I want to raise in priority soon, and patches are welcome, but that's the state of things t

Re: [rspec-users] redirects while using subdomains not working in 4.1

2009-02-06 Thread Tom Hoen
Zach Dennis wrote: > > Were you using one of my branches, and was it working for you? > > I just pulled down the latest webrat and installed it on a project > that uses subdomains, and all of the features are still passing. Zach - I was using this fork: http://github.com/zdennis/webrat/tree/m

Re: [rspec-users] Fixjour and others

2009-02-06 Thread Scott Taylor
Juanma Cervera wrote: Hello I have seen that some people in this list is using Fixjour as the replacement of fixtures. But I can't understand why it is superior or better than other approaches to the subject like Machinist o FactoryGirl. What are the problems this library resolve? Can somebody e

Re: [rspec-users] Fixjour and others

2009-02-06 Thread Juanma Cervera
I'm sorry for the question. I have just seen that this question is already treated in a very near thread. I didn't see it. Juanma -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/ma

[rspec-users] Fixjour and others

2009-02-06 Thread Juanma Cervera
Hello I have seen that some people in this list is using Fixjour as the replacement of fixtures. But I can't understand why it is superior or better than other approaches to the subject like Machinist o FactoryGirl. What are the problems this library resolve? Can somebody explain this a little. T