Re: [rspec-users] Adding path for autotest to monitor

2010-02-19 Thread David Chelimsky
On Fri, Feb 19, 2010 at 6:53 PM, drewB wrote: > I am using autotest with RSpec (autospec) and for some reason it > doesn't monitor files under the integration folder.  Does anyone know > how to config autotest to monitor additional paths?  I tried playing > with add_mapping in my .autotest but was

[rspec-users] Adding path for autotest to monitor

2010-02-19 Thread drewB
I am using autotest with RSpec (autospec) and for some reason it doesn't monitor files under the integration folder. Does anyone know how to config autotest to monitor additional paths? I tried playing with add_mapping in my .autotest but was not able to get it to work. Thanks! P.S. I know that

Re: [rspec-users] Question About Cleaning Up Specs?

2010-02-19 Thread Rick DeNatale
On Fri, Feb 19, 2010 at 8:13 PM, Pat Maddox wrote: > I disagree with the crowd on the basis that these examples are lazy.  Very > close to what I do though. > > Imagine you had one other example in there: > > it "should assign the post to the view" do >  post :create >  assigns[:post].should == @

Re: [rspec-users] Question About Cleaning Up Specs?

2010-02-19 Thread Pat Maddox
I disagree with the crowd on the basis that these examples are lazy. Very close to what I do though. Imagine you had one other example in there: it "should assign the post to the view" do post :create assigns[:post].should == @post end Then you wouldn't really need the other should_receive

Re: [rspec-users] adding to the callbacks that rspec-rails adds

2010-02-19 Thread Pat Maddox
Look in spec/spec_helper.rb for the configuration block, and hook up your custom stuff there: Spec::Runner.configured do |config| config.before(:each) { AfterFixturesLoaded.custom_stuff1 } config.after(:each) { AfterFixturesLoaded.custom_stuff1 } end Pat On Feb 16, 2010, at 8:48 AM, Ben F

Re: [rspec-users] Do you still Write Tests First on code that is churning hard?

2010-02-19 Thread m...@franklakatos.com
I kind of follow a similar principle here. Many times I will write app code because in not sure how to pull of the functionality I'm try to do. Once I can confirm that I'm getting the expected results, I take a mental note of what I did, remove the code, and drive it out again with the spec

Re: [rspec-users] Do you still Write Tests First on code that is churning hard?

2010-02-19 Thread Matt Wynne
On 19 Feb 2010, at 08:59, Erik Pukinskis wrote: Hello Specmeisters! I have a bit of a philosophical question for the TDD witches and wizards out there. I'm working on some code that is really churning... It's doing complicated calculations, but the actual desired results are a moving target.

Re: [rspec-users] Do you still Write Tests First on code that is churning hard?

2010-02-19 Thread Joaquin Rivera Padron
hi there, well I'm not a meister myself, but spec-ing something you don't know the outside result is a bit hard for me. I normally work in two modes: * hacking mode: that's when I'm trying to "see" if I can do something, if the result will run, getting to know the problem and such. In these mode I

Re: [rspec-users] Do you still Write Tests First on code that is churning hard?

2010-02-19 Thread Courtenay
Testing should answer this question for you, regularly: How do you know it works? Courtenay On Fri, Feb 19, 2010 at 12:59 AM, Erik Pukinskis wrote: > Hello Specmeisters! > > I have a bit of a philosophical question for the TDD witches and > wizards out there.  I'm working on some code that i

[rspec-users] Do you still Write Tests First on code that is churning hard?

2010-02-19 Thread Erik Pukinskis
Hello Specmeisters! I have a bit of a philosophical question for the TDD witches and wizards out there. I'm working on some code that is really churning... It's doing complicated calculations, but the actual desired results are a moving target. The acceptable values, and even the structure of the