AsteriskLabs / devise_google_authenticator

A Devise extension to allow your app to utilise Google's 2FA Mobile app
http://labs.asteriskinfosec.com.au/tag/devise_google_authenticator/
MIT License
216 stars 156 forks source link

Tests fail #4

Closed rmoriz closed 11 years ago

rmoriz commented 12 years ago

Hi,

when using your Gemfile I'm getting:

➜  devise_google_authenticator git:(master) bundle exec rake
/Users/rmoriz/.rbenv/versions/1.9.3-p194/bin/ruby -I"lib:lib:test" -I"/Users/rmoriz/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1" "/Users/rmoriz/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/rake_test_loader.rb" "test/**/*_test.rb" 

==> Devise.orm = :active_record
/Users/rmoriz/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:82:in `<class:Base>': uninitialized constant ActiveRecord::ConnectionAdapters::ConnectionHandler (NameError)
    from /Users/rmoriz/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:2:in `<module:ActiveRecord>'
    from /Users/rmoriz/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/connection_adapters/abstract/connection_specification.rb:1:in `<top (required)>'
    from /Users/rmoriz/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/activerecord-3.2.6/lib/active_record/base.rb:720:in `<top (required)>'
    from /Users/rmoriz/Dropbox/Projekte/forks/devise_google_authenticator/test/rails_app/config/application.rb:14:in `<top (required)>'
    from /Users/rmoriz/Dropbox/Projekte/forks/devise_google_authenticator/test/rails_app/config/environment.rb:2:in `require'
    from /Users/rmoriz/Dropbox/Projekte/forks/devise_google_authenticator/test/rails_app/config/environment.rb:2:in `<top (required)>'
    from /Users/rmoriz/Dropbox/Projekte/forks/devise_google_authenticator/test/test_helper.rb:6:in `require'
    from /Users/rmoriz/Dropbox/Projekte/forks/devise_google_authenticator/test/test_helper.rb:6:in `<top (required)>'
    from /Users/rmoriz/Dropbox/Projekte/forks/devise_google_authenticator/test/generators_test.rb:2:in `require'
    from /Users/rmoriz/Dropbox/Projekte/forks/devise_google_authenticator/test/generators_test.rb:2:in `<top (required)>'
    from /Users/rmoriz/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/rake_test_loader.rb:10:in `require'
    from /Users/rmoriz/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/rake_test_loader.rb:10:in `block (2 levels) in <main>'
    from /Users/rmoriz/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/rake_test_loader.rb:9:in `each'
    from /Users/rmoriz/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/rake_test_loader.rb:9:in `block in <main>'
    from /Users/rmoriz/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/rake_test_loader.rb:4:in `select'
    from /Users/rmoriz/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rake/rake_test_loader.rb:4:in `<main>'
rake aborted!
Command failed with status (1): [/Users/rmoriz/.rbenv/versions/1.9.3-p194/b...]

Tasks: TOP => test
(See full trace by running task with --trace)
bundle exec rake  4,58s user 0,55s system 87% cpu 5,870 total
xntrik commented 11 years ago

Addressed in https://github.com/AsteriskLabs/devise_google_authenticator/commit/8cdcd6afb6803f7dbdcdeb5ab112bc3dc17fa905