Got it, thanks. That shouldn't be a problem since tests use predefined data. You've got a point though, defining the accessors manually feels a little hackish, maybe it would be better to just mock/stub them when testing the models, would that work without messing with some other feature?
Let me also ask just one more thing: I noticed that for each defined model Sequel makes a seemingly random SELECT query just after establishing a connection to the database, it seems like a check to see if there are any rows but why it that necessary? require 'sequel' require 'logger' db = Sequel.mock db.loggers << Logger.new(STDOUT) class Foo < Sequel::Model; end class Bar < Sequel::Model; end # SELECT * FROM foos LIMIT 1 # SELECT * FROM bars LIMIT 1 -- 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 http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
