{"action":"created","issue":{"url":"https://api.github.com/repos/orgsync/active_interaction/issues/320","labels_url":"https://api.github.com/repos/orgsync/active_interaction/issues/320/labels{/name}","comments_url":"https://api.github.com/repos/orgsync/active_interaction/issues/320/comments","events_url":"https://api.github.com/repos/orgsync/active_interaction/issues/320/events","html_url":"https://github.com/orgsync/active_interaction/issues/320","id":114663740,"number":320,"title":"No connection pool for ActiveRecord::Base with rspec","user":{"login":"jwoertink","id":2391,"avatar_url":"https://avatars.githubusercontent.com/u/2391?v=3","gravatar_id":"","url":"https://api.github.com/users/jwoertink","html_url":"https://github.com/jwoertink","followers_url":"https://api.github.com/users/jwoertink/followers","following_url":"https://api.github.com/users/jwoertink/following{/other_user}","gists_url":"https://api.github.com/users/jwoertink/gists{/gist_id}","starred_url":"https://api.github.com/users/jwoertink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwoertink/subscriptions","organizations_url":"https://api.github.com/users/jwoertink/orgs","repos_url":"https://api.github.com/users/jwoertink/repos","events_url":"https://api.github.com/users/jwoertink/events{/privacy}","received_events_url":"https://api.github.com/users/jwoertink/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orgsync/active_interaction/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"tfausak","id":408753,"avatar_url":"https://avatars.githubusercontent.com/u/408753?v=3","gravatar_id":"","url":"https://api.github.com/users/tfausak","html_url":"https://github.com/tfausak","followers_url":"https://api.github.com/users/tfausak/followers","following_url":"https://api.github.com/users/tfausak/following{/other_user}","gists_url":"https://api.github.com/users/tfausak/gists{/gist_id}","starred_url":"https://api.github.com/users/tfausak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfausak/subscriptions","organizations_url":"https://api.github.com/users/tfausak/orgs","repos_url":"https://api.github.com/users/tfausak/repos","events_url":"https://api.github.com/users/tfausak/events{/privacy}","received_events_url":"https://api.github.com/users/tfausak/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-11-02T19:11:06Z","updated_at":"2015-11-02T22:51:57Z","closed_at":null,"body":"I have a rails app that doesn't use a DB. It just makes API calls for all the data. I'm using version `2.1.3` of the gem. When I run my specs I get this error\r\n\r\n```text\r\nFailure/Error: Unable to find matching line from backtrace\r\n     ActiveRecord::ConnectionNotEstablished:\r\n       No connection pool for ActiveRecord::Base\r\n     # /Users/jeremy/.rvm/gems/ruby-2.2.0@stan/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:570:in `retrieve_connection'\r\n     # /Users/jeremy/.rvm/gems/ruby-2.2.0@stan/gems/activerecord-4.2.4/lib/active_record/connection_handling.rb:113:in `retrieve_connection'\r\n     # /Users/jeremy/.rvm/gems/ruby-2.2.0@stan/gems/activerecord-4.2.4/lib/active_record/connection_handling.rb:87:in `connection'\r\n     # /Users/jeremy/.rvm/gems/ruby-2.2.0@stan/gems/activerecord-4.2.4/lib/active_record/fixtures.rb:501:in `create_fixtures'\r\n     # /Users/jeremy/.rvm/gems/ruby-2.2.0@stan/gems/activerecord-4.2.4/lib/active_record/fixtures.rb:979:in `load_fixtures'\r\n     # /Users/jeremy/.rvm/gems/ruby-2.2.0@stan/gems/activerecord-4.2.4/lib/active_record/fixtures.rb:952:in `setup_fixtures'\r\n     # /Users/jeremy/.rvm/gems/ruby-2.2.0@stan/gems/activerecord-4.2.4/lib/active_record/fixtures.rb:826:in `before_setup'\r\n```\r\n\r\nWhen I comment out this gem, all my specs run fine. I've already ensured that I'm not calling anything like fixtures, and active_record/railtie isn't included anywhere.\r\n\r\nMy guess is that it sees the `with_options` method, and thinks it needs to load ActiveRecord..."},"comment":{"url":"https://api.github.com/repos/orgsync/active_interaction/issues/comments/153183354","html_url":"https://github.com/orgsync/active_interaction/issues/320#issuecomment-153183354","issue_url":"https://api.github.com/repos/orgsync/active_interaction/issues/320","id":153183354,"user":{"login":"tfausak","id":408753,"avatar_url":"https://avatars.githubusercontent.com/u/408753?v=3","gravatar_id":"","url":"https://api.github.com/users/tfausak","html_url":"https://github.com/tfausak","followers_url":"https://api.github.com/users/tfausak/followers","following_url":"https://api.github.com/users/tfausak/following{/other_user}","gists_url":"https://api.github.com/users/tfausak/gists{/gist_id}","starred_url":"https://api.github.com/users/tfausak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfausak/subscriptions","organizations_url":"https://api.github.com/users/tfausak/orgs","repos_url":"https://api.github.com/users/tfausak/repos","events_url":"https://api.github.com/users/tfausak/events{/privacy}","received_events_url":"https://api.github.com/users/tfausak/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T22:51:57Z","updated_at":"2015-11-02T22:51:57Z","body":"Ok, I got it down to this.\r\n\r\n``` rb\r\n# Gemfile\r\nsource 'https://rubygems.org'\r\ngem 'rails', '4.2.4'\r\ngem 'active_interaction', '2.1.3'\r\ngem 'rspec-rails', '3.3.3'\r\n```\r\n\r\n``` rb\r\n# failing_spec.rb\r\nrequire 'action_controller/railtie'\r\nrequire 'active_interaction'\r\nrequire 'rspec/rails'\r\nRSpec.describe('x') { it('y') { pending 'z' } }\r\n```\r\n\r\n``` sh\r\n> bundle install\r\n> bundle exec rspec failing_spec.rb \r\nF\r\n\r\nFailures:\r\n\r\n  1) x y\r\n     Failure/Error: Unable to find matching line from backtrace\r\n     ActiveRecord::ConnectionNotEstablished:\r\n       No connection pool for ActiveRecord::Base\r\n     # /.../connection_adapters/abstract/connection_pool.rb:570:in `retrieve_connection'\r\n     # /.../connection_handling.rb:113:in `retrieve_connection'\r\n     # /.../connection_handling.rb:87:in `connection'\r\n     # /.../fixtures.rb:501:in `create_fixtures'\r\n     # /.../fixtures.rb:979:in `load_fixtures'\r\n     # /.../fixtures.rb:952:in `setup_fixtures'\r\n     # /.../fixtures.rb:826:in `before_setup'\r\n\r\nFinished in 0.00295 seconds (files took 0.60425 seconds to load)\r\n1 example, 1 failure\r\n\r\nFailed examples:\r\n\r\nrspec ./failing_spec.rb:4 # x y\r\n```"}}