Hi *, I'm using cucumber with a sinatra app that uses DM for db access and 
factory_girl for fixtures.
The problem I'm currently facing is that the app seems to crash when accessing 
the db, the exception is:

undefined method `release' for class `DataObjects::Mysql::Connection' 
(NameError)

Someone has any idea ? If I put auto_migrate! in the Before filter, for 
example, I have the same error. How can I check if it's picking up the right 
database or using fixtures ?

This is my env.rb, maybe someone has a working configurations so I can check 
what I'm doing wrong ?

##
Charon::Application.set :environment, :test
Charon.new File.join(File.dirname(__FILE__), '..', 'config/config.yml')

World do

  def app
    @app ||= Rack::Builder.new do
      run Charon::Application
    end
  end

  include Rack::Test::Methods

end
##

TIA,
  ngw

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" 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/datamapper?hl=en.

Reply via email to