I'm trying to test a Roda/Sequel app with RSpec and I'm getting a bunch of
errors when running this in the RSpec config;
config.around(:each) do |example|
Sequel::Model.db.transaction(rollback: :always, auto_savepoint: true){
example.run }
end
these are the errors;
/ruby/gems/2.2.0/gems/sequel-4.20.0/lib/sequel/model/base.rb:2153: warning:
instance variable @singleton_setter_added not initialized
/ruby/gems/2.2.0/gems/sequel-4.20.0/lib/sequel/model/base.rb:2170: warning:
instance variable @server not initialized
/ruby/gems/2.2.0/gems/sequel-4.20.0/lib/sequel/model/base.rb:2172: warning:
instance variable @this not initialized
/ruby/gems/2.2.0/gems/sequel-4.20.0/lib/sequel/model/base.rb:2170: warning:
instance variable @server not initialized
/ruby/gems/2.2.0/gems/sequel-4.20.0/lib/sequel/model/base.rb:2172: warning:
instance variable @this not initialized
/ruby/gems/2.2.0/gems/sequel-4.20.0/lib/sequel/model/base.rb:2201: warning:
instance variable @server not initialized
/ruby/gems/2.2.0/gems/sequel-4.20.0/lib/sequel/dataset/sql.rb:1467: warning:
instance variable @skip_symbol_cache not initialized
/ruby/gems/2.2.0/gems/sequel-4.20.0/lib/sequel/dataset/sql.rb:1467: warning:
instance variable @skip_symbol_cache not initialized
In case it helps, I've put together a small app for
testing; https://github.com/mrcook/roda_sequel_rspec_test (see app.rb for
the db settings)
I'm ultimately trying to get DatabaseCleaner/RSpec working together, and
running DatabaseCleaner.cleaning in the config.around block produces the
same errors.
Can anyone help?
Michael
--
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.