Re: [rspec-users] Return code for running stories

2008-05-03 Thread Kero
>> I see neither #with_steps_for, nor #run return anything resembling >> the result of the tests (which does not really surprise me). >> >> So how to get the success/pending/failure of the stories out? >> Should I write a formatter/listener that exit(1)s on failure? >> >> PS: I'm back after a few m

Re: [rspec-users] Return code for running stories

2008-05-02 Thread Ben Mabey
Kero wrote: Hi all! Just wrote a few stories and committed code to a project of mine, then realized I made a mistake (with the commit, not the code or tests). It would be nice to put the script that runs the stories as a pre-commit hook, preventing the commit from succeeding if the stories fail.