Re: [rspec-users] Test::Unit Functional failure puzzle

2008-11-23 Thread James Byrne
David Chelimsky wrote: > > Without seeing the controller code, I'd guess that the controller uses > create, and not create! and that a validation failure is not getting > reported anywhere. > > If so, try changing create to create! and you should get your error. > Thank you. You were close eno

Re: [rspec-users] Missing method implementation_backtrace

2008-11-23 Thread aslak hellesoy
On Fri, Nov 21, 2008 at 4:20 AM, David Chelimsky <[EMAIL PROTECTED]>wrote: > On Thu, Nov 20, 2008 at 5:47 PM, rubyphunk <[EMAIL PROTECTED]> > wrote: > > Hi, > > > > same problem here. I always used "example.implementation_backtrace" in > > a custom formatter to find out to which spec file a passin

Re: [rspec-users] More Examples

2008-11-23 Thread James Byrne
Pau Cor wrote: > James Byrne wrote: >> This is what I see in the console: > The underlining didn't come through in you post, so that doesn't help > us. > > If you post your step matchers, then we can tell you what your columns > need to be. Essentially, for every (.*) in your step matchers, you

[rspec-users] How to spec a Rails helper method

2008-11-23 Thread Nick Hoffman
I'm trying to write specs for a helper method that I'm creating, but my specs are failing to find the helper method # app/helpers/properties_helper.rb module PropertiesHelper def format_utilities(utilities) end end # spec/helpers/properties_helper_spec.rb require File.expand_path(File.dirn

Re: [rspec-users] Cucumber: Group Given, Whens and Thens

2008-11-23 Thread Pat Maddox
"David Chelimsky" <[EMAIL PROTECTED]> writes: > On Thu, Nov 20, 2008 at 10:40 AM, Andrew Premdas <[EMAIL PROTECTED]> wrote: >> Also occasionally you may want to use a when as a given. Cucumber >> doesn't actually use the given|when|then|and to differentiate steps, >> just the regex that comes afte