ruby - Why do I get an "ActiveRecord::ConnectionNotEstablished" error when trying to run my rspec 2.99 tests with Rails 4.1? -
i have rails app i'm upgrading rails 4.1.4. have rspec test suite want run against app updated rails version. application not use database, communicates services. however, when try run tests, error:
failure/error: unable find matching line backtrace activerecord::connectionnotestablished: activerecord::connectionnotestablished # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/activerecord-4.1.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:541:in `retrieve_connection' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/activerecord-4.1.4/lib/active_record/connection_handling.rb:113:in `retrieve_connection' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/activerecord-4.1.4/lib/active_record/connection_handling.rb:87:in `connection' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/activerecord-4.1.4/lib/active_record/fixtures.rb:499:in `create_fixtures' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/activerecord-4.1.4/lib/active_record/fixtures.rb:984:in `load_fixtures' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/activerecord-4.1.4/lib/active_record/fixtures.rb:957:in `setup_fixtures' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/activerecord-4.1.4/lib/active_record/fixtures.rb:806:in `before_setup' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-rails-2.99.0/lib/rspec/rails/adapters.rb:68:in `block (2 levels) in <module:minitestlifecycleadapter>' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_exec' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/extensions/instance_eval_with_args.rb:16:in `instance_eval_with_args' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/example.rb:241:in `instance_eval_with_args' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/hooks.rb:106:in `block (2 levels) in run' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/hooks.rb:104:in `call' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/hooks.rb:104:in `run' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/hooks.rb:446:in `run_hook' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/example_group.rb:462:in `run_around_each_hooks' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/example.rb:250:in `with_around_each_hooks' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/example.rb:113:in `run' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/example_group.rb:514:in `block in run_examples' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/example_group.rb:510:in `map' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/example_group.rb:510:in `run_examples' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/example_group.rb:495:in `run' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/command_line.rb:24:in `block (2 levels) in run' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/command_line.rb:24:in `map' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/command_line.rb:24:in `block in run' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/reporter.rb:58:in `report' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/command_line.rb:21:in `run' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/runner.rb:103:in `run' # /users/karianneberg/.rvm/gems/ruby-1.9.3-p484/gems/rspec-core-2.99.1/lib/rspec/core/runner.rb:17:in `block in autorun'
i don't understand why it's trying fire active record
the application runs fine when don't run though tests, , tests run fine on rails 4.0. i'm still using rspec-rails 2.99. know problem might be?
Comments
Post a Comment