Skip to content

Instantly share code, notes, and snippets.

@jonathan
Created March 12, 2010 15:35
Show Gist options
  • Save jonathan/330433 to your computer and use it in GitHub Desktop.
Save jonathan/330433 to your computer and use it in GitHub Desktop.
superclass mismatch for class PostgreSQLAdapter (TypeError)
.bundle/ruby/1.8/bundler/gems/rails-master/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:189
.bundle/ruby/1.8/bundler/gems/rails-master/activesupport/lib/active_support/dependencies.rb:209:in `require'
.bundle/ruby/1.8/bundler/gems/rails-master/activesupport/lib/active_support/dependencies.rb:209:in `require'
.bundle/ruby/1.8/bundler/gems/rails-master/activesupport/lib/active_support/dependencies.rb:197:in `load_dependency'
.bundle/ruby/1.8/bundler/gems/rails-master/activesupport/lib/active_support/dependencies.rb:209:in `require'
.bundle/ruby/1.8/bundler/gems/rails-master/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:74:in `establish_connection'
.bundle/ruby/1.8/bundler/gems/rails-master/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:60:in `establish_connection'
.bundle/ruby/1.8/bundler/gems/rails-master/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:55:in `establish_connection'
.bundle/ruby/1.8/bundler/gems/rails-master/activerecord/lib/active_record/railtie.rb:50
.bundle/ruby/1.8/bundler/gems/rails-master/activesupport/lib/active_support/lazy_load_hooks.rb:21:in `instance_eval'
.bundle/ruby/1.8/bundler/gems/rails-master/activesupport/lib/active_support/lazy_load_hooks.rb:21:in `run_base_hooks'
.bundle/ruby/1.8/bundler/gems/rails-master/activesupport/lib/active_support/lazy_load_hooks.rb:21:in `each'
.bundle/ruby/1.8/bundler/gems/rails-master/activesupport/lib/active_support/lazy_load_hooks.rb:21:in `run_base_hooks'
.bundle/ruby/1.8/bundler/gems/rails-master/activerecord/lib/active_record/base.rb:2248
.bundle/ruby/1.8/bundler/gems/rails-master/activerecord/lib/active_record/fixtures.rb:911:in `setup_fixtures'
.bundle/ruby/1.8/bundler/gems/rails-master/activesupport/lib/active_support/callbacks.rb:408:in `_run_setup_callbacks'
.bundle/ruby/1.8/bundler/gems/rails-master/activesupport/lib/active_support/callbacks.rb:88:in `send'
.bundle/ruby/1.8/bundler/gems/rails-master/activesupport/lib/active_support/callbacks.rb:88:in `Before'
When I am on the scope inputs index page # features/step_definitions/web_steps.rb:18
Then I should see "scope_inputs" # features/step_definitions/web_steps.rb:99
ActiveRecord::ConnectionNotEstablished (ActiveRecord::ConnectionNotEstablished)
.bundle/ruby/1.8/bundler/gems/rails-master/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:330:in `retrieve_connection'
.bundle/ruby/1.8/bundler/gems/rails-master/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:103:in `retrieve_connection'
.bundle/ruby/1.8/bundler/gems/rails-master/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:95:in `connection'
.bundle/ruby/1.8/bundler/gems/rails-master/activerecord/lib/active_record/fixtures.rb:950:in `teardown_fixtures'
.bundle/ruby/1.8/bundler/gems/rails-master/activesupport/lib/active_support/callbacks.rb:408:in `_run_teardown_callbacks'
.bundle/ruby/1.8/bundler/gems/rails-master/activesupport/lib/active_support/callbacks.rb:88:in `send'
.bundle/ruby/1.8/bundler/gems/rails-master/activesupport/lib/active_support/callbacks.rb:88:in `After'
@krisleech
Copy link

I tried the below but it didn't work:

gem 'database_cleaner', :require => false

In spec_helper.rb:

require 'database_cleaner'

I'm not using pg, only mysql.

@krisleech
Copy link

In the end I reverted to 0.5.0, which works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment