My Bad, it was neither an issue with Sequel nor RSpec.
This is a project where I i import records from a SQLite database into a mongoDB store. To commonuciate with the latter I use mongoid, which I require after Sequel. Mongoid then uses ActiveSupport for inflections. And of course, when ActiveSupport gets loaded, it overwrites the inflection methods added to String by Sequel. Not sure yet what the best thing to do will be (maybe change the require order....), but at least I located the error. Apologies to Sequel and RSpec! Martin On Monday, May 14, 2018 at 1:08:14 PM UTC+2, Martin Stein wrote: > > Hi, > > this may be an RSpec issue rather than a Sequel issue, but still: > > I have a few custom inflections defined (irregulars, uncountables, > plurals, singulars). Those inflections work as expected, except when used > from within an RSpec expectation, where they are being ignored. > > The inflections are defiined in a self-built gem, which I am requiring, > but even declaring them explicitly in the test does not work. Cave-man > debugging with `puts String::Inflections::plurals`, ::singulars, or > ::uncountables from within the test will list them, so they are there, but > hey just don't 'kick in'. Any ideas? > > Martin > -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
