bpot/data_fabric

Tests fail on a fresh clone on the rails32 branch

Opened this issue · 0 comments

I get 8 of these running the tests on a fresh clone on the rails32 branch:

  1) Error:
test_enchilada(ConnectionTest):
NameError: uninitialized constant DataFabric::ConnectionProxy::Rails
    /Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/lib/data_fabric/connection_proxy.rb:157:in `connection_name_builder'
    /Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/lib/data_fabric/connection_proxy.rb:99:in `connection_name'
    /Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/test/connection_test.rb:107:in `block in test_enchilada'
    /Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/lib/data_fabric.rb:62:in `activate_shard'
    /Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/test/connection_test.rb:106:in `test_enchilada'

If I require rails in test_helper.rb I get this failure:

  1) Failure:
test_enchilada(ConnectionTest) [/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/test/connection_test.rb:110]:
[ActiveRecord::RecordNotFound] exception expected, not
Class: <NoMethodError>
Message: <"undefined method `accept' for nil:NilClass">
---Backtrace---
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `to_sql'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/lib/data_fabric/connection_proxy.rb:95:in `method_missing'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `block in find_by_sql'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `block in to_a'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:336:in `find_one'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:312:in `find_with_ids'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:107:in `find'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/querying.rb:5:in `find'
/Users/jason/projects/newtoy/gwf_service/tmp/data_fabric/test/connection_test.rb:111:in `block (2 levels) in test_enchilada'
---------------