Re: [rspec-users] Custom Formatter: Getting Text from It Method

2011-09-30 Thread Alex Chaffee
> The reason I'm doing this is because I'd like viewers of the test results to see the exact condition that was tested for in the should if they want to -- without having to read the code. Have you seen Wrong? You just described its intent :-) http://github.com/sconover/wrong If you get a source

Re: [rspec-users] Custom Formatter: Getting Text from It Method

2011-09-30 Thread David Chelimsky
On Sep 28, 2011, at 7:30 AM, Jeff Nyman wrote: > Hey all. > > I've been playing around with RSpec custom formatters to see how much > flexibility there is. One thing I've been trying to see is if I can > print the contents of a variable that's in an example (it) method. So, > for example, here's

[rspec-users] Custom Formatter: Getting Text from It Method

2011-09-30 Thread Jeff Nyman
Hey all. I've been playing around with RSpec custom formatters to see how much flexibility there is. One thing I've been trying to see is if I can print the contents of a variable that's in an example (it) method. So, for example, here's what I have in my specification: it "should display resul