Re: [rspec-users] [rspec] loading specs as an object model without running them

2009-04-29 Thread Marty Andrews
On 30/04/2009, at 7:59 AM, Kero van Gelder wrote: So basically, I want to do something like this: examples = load_examples_without_running examples.each {|example| puts example.description} [snip] I'm working into a big corporate in Australia, and they are demanding traceability of tests b

Re: [rspec-users] [rspec] loading specs as an object model without running them

2009-04-29 Thread Kero van Gelder
>>> So basically, I want to do something like this: >>> >>> examples = load_examples_without_running >>> examples.each {|example| puts example.description} [snip] > I'm working into a big corporate in Australia, and they are demanding > traceability of tests back to requirements. I'm already u

Re: [rspec-users] [rspec] loading specs as an object model without running them

2009-04-29 Thread Marty Andrews
[snip] I'm really sorry about this, but I just couldn't wait for tonight to add this: http://github.com/dchelimsky/rspec/commit/a4b3aac62e940c50077bdeb7d9ad5ee11e02116d The release *will* have to wait for tonight, but you can easily build the gem locally: http://wiki.github.com/dchelimsky

Re: [rspec-users] [rspec] loading specs as an object model without running them

2009-04-29 Thread David Chelimsky
On Wed, Apr 29, 2009 at 6:50 AM, Marty Andrews wrote: > > On 29/04/2009, at 9:41 PM, David Chelimsky wrote: > >> On Wed, Apr 29, 2009 at 6:09 AM, Marty Andrews >> wrote: >>> >>> On 29/04/2009, at 8:54 PM, David Chelimsky wrote: >>> On Wed, Apr 29, 2009 at 1:23 AM, Marty Andrews wrote:

Re: [rspec-users] [rspec] loading specs as an object model without running them

2009-04-29 Thread Marty Andrews
On 29/04/2009, at 9:41 PM, David Chelimsky wrote: On Wed, Apr 29, 2009 at 6:09 AM, Marty Andrews wrote: On 29/04/2009, at 8:54 PM, David Chelimsky wrote: On Wed, Apr 29, 2009 at 1:23 AM, Marty Andrews > wrote: I'd like to load all of my examples into memory without actually running them

Re: [rspec-users] [rspec] loading specs as an object model without running them

2009-04-29 Thread David Chelimsky
On Wed, Apr 29, 2009 at 6:09 AM, Marty Andrews wrote: > > On 29/04/2009, at 8:54 PM, David Chelimsky wrote: > >> On Wed, Apr 29, 2009 at 1:23 AM, Marty Andrews >> wrote: >>> >>> I'd like to load all of my examples into memory without actually >>> running them, so I can traverse the object tree an

Re: [rspec-users] [rspec] loading specs as an object model without running them

2009-04-29 Thread Marty Andrews
On 29/04/2009, at 8:54 PM, David Chelimsky wrote: On Wed, Apr 29, 2009 at 1:23 AM, Marty Andrews wrote: I'd like to load all of my examples into memory without actually running them, so I can traverse the object tree and get descriptions etc. I'm finding it tricky to figure out how to do th

Re: [rspec-users] [rspec] loading specs as an object model without running them

2009-04-29 Thread David Chelimsky
On Wed, Apr 29, 2009 at 1:23 AM, Marty Andrews wrote: > I'd like to load all of my examples into memory without actually > running them, so I can traverse the object tree and get descriptions > etc.  I'm finding it tricky to figure out how to do that though. > There seems to be an inherent assumpt

Re: [rspec-users] [rspec] loading specs as an object model without running them

2009-04-28 Thread Matt Wynne
On 29 Apr 2009, at 07:23, Marty Andrews wrote: I'd like to load all of my examples into memory without actually running them, so I can traverse the object tree and get descriptions etc. I'm finding it tricky to figure out how to do that though. There seems to be an inherent assumption in the f

[rspec-users] [rspec] loading specs as an object model without running them

2009-04-28 Thread Marty Andrews
I'd like to load all of my examples into memory without actually running them, so I can traverse the object tree and get descriptions etc.  I'm finding it tricky to figure out how to do that though. There seems to be an inherent assumption in the framework that that examples will actually run. So