On Wed, Mar 2, 2011 at 2:34 PM, Colin Law <[email protected]> wrote:
> On 2 March 2011 20:18, David Kahn <[email protected]> wrote: > > > On Wed, Mar 2, 2011 at 1:46 PM, Colin Law <[email protected]> > wrote: > >> ... > >> It seems as if shoulda is not picking up the inflections for some > >> reason. I don't use shoulda, can you output debug during its > >> execution? Is so what happens if you output > >> "xp_jurisdiction_taxes".singularize and "taxes".singularize? > > > > Good question... and rails gets it right: > > > > ruby-1.9.2-p136 :004 > 'xp_jurisdiction_taxes'.singularize > > => "xp_jurisdiction_tax" > > I meant to output that during the test itself if possible, to make > sure that the inflections have been picked up at that time. > Good idea, sorry.... so "puts 'xp_jurisdiction_taxes'.singularize" while inside a spec (cant put it directly inside the shoulda call though) gives us: xp_jurisdiction_tax > > Colin > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

