Re: [rspec-users] Running RSpec from within my Ruby application

2008-09-28 Thread Daniel Lucraft
--- Scott Taylor <[EMAIL PROTECTED]> wrote: > I'm missing the why. What is the higher-level objective that you're > trying to accomplish? Seems like you want something like autotest + a > custom formatter? The app (www.redcaride.com) has a plugin system with reloading, which lets you wor

Re: [rspec-users] Running RSpec from within my Ruby application

2008-09-27 Thread Scott Taylor
On Sep 27, 2008, at 8:02 AM, Daniel Lucraft wrote: Hi all (I tried to send this question to the list a few hours ago, but it seems to have not got through. If it did sorry for the duplication.) Does anyone have any tips or examples of how to run RSpec example groups programmatically from with

Re: [rspec-users] Running RSpec from within my Ruby application

2008-09-27 Thread Daniel Lucraft
Well, after some time fiddling, I've come up with this: require 'rubygems' # make sure nothing gets added to ruby's at_exit hook: $spec_runner_at_exit_hook_registered = true # load RSpec require 'spec' require 'spec/runner/formatter/base_formatter' # helper to find all defined ex

[rspec-users] Running RSpec from within my Ruby application

2008-09-27 Thread Daniel Lucraft
Hi all (I tried to send this question to the list a few hours ago, but it seems to have not got through. If it did sorry for the duplication.) Does anyone have any tips or examples of how to run RSpec example groups programmatically from within a Ruby application? Essentially I would like to be