Re: [rspec-users] Is there an easy way to inject each example text into test.log

2011-01-30 Thread Rick DeNatale
On Sun, Jan 30, 2011 at 9:16 AM, David Chelimsky wrote: > On Jan 30, 2011, at 6:00 AM, Evgeniy Dolzhenko wrote: > >> On 1/30/2011 2:00 PM, Tom H. wrote: >>> Evgeniy Dolzhenko wrote in post #978481: Do you need the full source code of an example in the log output, or just a description? >

Re: [rspec-users] Is there an easy way to inject each example text into test.log

2011-01-30 Thread David Chelimsky
On Jan 30, 2011, at 6:00 AM, Evgeniy Dolzhenko wrote: > On 1/30/2011 2:00 PM, Tom H. wrote: >> Evgeniy Dolzhenko wrote in post #978481: >>> Do you need the full source code of an example in the log output, or >>> just a description? >> Just the description would be good so I can match up the log e

Re: [rspec-users] Is there an easy way to inject each example text into test.log

2011-01-30 Thread Tom H.
That worked a treat Thanks -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Is there an easy way to inject each example text into test.log

2011-01-30 Thread Evgeniy Dolzhenko
RSpec.configure do |c| c.before do |m| Rails.logger.debug "==> #{m.example.full_description}" end end Cheers On 1/30/2011 2:00 PM, Tom H. wrote: Evgeniy Dolzhenko wrote in post #978481: Do you need the full source code of an example in the log output, or just a description? Just the

Re: [rspec-users] Is there an easy way to inject each example text into test.log

2011-01-30 Thread Tom H.
Evgeniy Dolzhenko wrote in post #978481: > Do you need the full source code of an example in the log output, or > just a description? Just the description would be good so I can match up the log entries to the spec -- Posted via http://www.ruby-forum.com/. __

Re: [rspec-users] Is there an easy way to inject each example text into test.log

2011-01-30 Thread Evgeniy Dolzhenko
Do you need the full source code of an example in the log output, or just a description? On 1/30/2011 12:16 PM, Tom H. wrote: This was asked back in 2008 but I'm wondering if there is an easier way with rspec2 and rails. Seems like it would make my test log much more meaningful. Surely somebody

[rspec-users] Is there an easy way to inject each example text into test.log

2011-01-30 Thread Tom H.
This was asked back in 2008 but I'm wondering if there is an easier way with rspec2 and rails. Seems like it would make my test log much more meaningful. Surely somebody must have done it. Is there an easy way to inject each example text into test.log so I can isolate the log output per example?