I just installed Rails3 Bootstrap Device Cancan in my local machine and ran rake spec
but I'm getting all test failures with below error in common:
undefined local variable or method 'postgresql_version' for #<ActiveRecord::ConnectionAdaptors::SQLite3Adaptor:0x489dff8>
I'm not sure why I'm getting this since I followed the instructions on https://github.com/RailsApps/rails3-bootstrap-devise-cancan
carefully.
I'm currently running this on Windows 8 and used Bitnami RubyStack to run CMD
Double-check your
database.yml
. Refer to Configuring Rails Applications, Section 3.12, Configuring a Database.Did you intend to use sqlite3? Is sqlite3 in your
Gemfile
? Naturally,SQLite3Adaptor
will not respond topostgresql_version
! Can you include a few more lines of the stack trace?I doubt this has anything to do with devise or cancan.