ChiliProject is not maintained anymore. Please be advised that there will be no more updates.
We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.
Can't create test cases.
Added by Nagaraj Ganachari at 2011-08-10 04:02 am
Hi all,
I am trying to install redcase-1.0-alpha-0.144 within
chiliproject-2.1.1. I copied redcase into vendor/plugins directory of
chiliproject. I have migrated the plugin database using 'rake
db:migrate:plugin' . I got a new tab 'Test cases' on chiliproject.
when I click on the tab 'Test cases' I get this error
NoMethodError in RedcaseController#index
"undefined method `quoted_table_name' for ActiveRecord::TestCase:Class"
How to solve this error? is the error associated with database tables?
how to create test cases?
----------------------------------
Ruby version: REE 1.8.7
Rails 3.0.9
OS: Scientific Linux 6.1 x86_64
Server : Passenger+nginx
I use bundle install for gems.
Please reply.
--
Nagaraj
Replies (9)
RE: Can't create test cases. - Added by Felix Schäfer at 2011-08-20 10:36 pm
ChiliProject doesn't run on rails 3, please make sure your rails server is started with bundle support so that it gets the right gems.
Furthermore, I noticed you wrote that you use rake db:migrate:plugin
, is that a typo or the actual command you've used? The right command to apply plugin migrations is rake db:migrate:plugins
(notice the s in plugins).
RE: Can't create test cases. - Added by Nagaraj Ganachari at 2011-08-21 10:30 am
Thank you for reply.
I am using bundler to install gems. it was a typo, I ran
'db:migrate:plugins' for redcase.
--
Nagaraj
RE: Can't create test cases. - Added by Felix Schäfer at 2011-08-21 10:48 am
First of all, if anyone's looking for the source, it's in http://redcase.svn.sourceforge.net/viewvc/redcase/dev/src/redcase
Next, did you have "normal" output from the plugins migrations, so something like "migrating redcase" and "creating table whatever"? Could you look if your database has a test_cases
table?
I suspect that some class in the plugin isn't initialized or loaded correctly because the rails autoloader goes looking for a TestCase
class, finds ActiveRecord::TestCase
(which is not the one the controller was looking for) and tries to use it instead of loading the one from the plugin. Please post the whole stack trace so that we can have a better look, but I think that's something that will have to be fixed in the plugin.
RE: Can't create test cases. - Added by Nagaraj Ganachari at 2011-08-23 05:00 am
Hi Felix,
I got normal out put, It was a successful migration. Yes, test_cases
table is there is mysql database.
Thank you.
--
Nagaraj
RE: Can't create test cases. - Added by Felix Schäfer at 2011-08-23 06:14 am
If the migrations ran and the table is there, then this is even more probable:
Felix Schäfer wrote:
I suspect that some class in the plugin isn't initialized or loaded correctly because the rails autoloader goes looking for a
TestCase
class, findsActiveRecord::TestCase
(which is not the one the controller was looking for) and tries to use it instead of loading the one from the plugin. Please post the whole stack trace so that we can have a better look, but I think that's something that will have to be fixed in the plugin.
RE: Can't create test cases. - Added by Nagaraj Ganachari at 2011-08-24 08:10 am
This is the stack trace.
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/reflection.rb:187:in
`quoted_table_name'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/associations/has_many_association.rb:97:in
`construct_sql'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/associations/association_collection.rb:21:in
`initialize'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/associations.rb:1306:in
`new'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/associations.rb:1306:in
`test_cases'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:235:in
`send'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:235:in
`preload_has_many_association'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:120:in
`send'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:120:in
`preload_one_association'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activesupport-2.3.12/lib/active_support/ordered_hash.rb:115:in
`each'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activesupport-2.3.12/lib/active_support/ordered_hash.rb:115:in
`each'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:114:in
`preload_one_association'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:91:in
`preload_associations'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:95:in
`preload_associations'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:93:in
`each'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:93:in
`preload_associations'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:90:in
`preload_associations'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:90:in
`each'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:90:in
`preload_associations'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/base.rb:1584:in
`find_every'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/base.rb:1539:in
`find_initial'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/base.rb:617:in
`find'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/base.rb:1914:in
`find_by_project_id'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/base.rb:1919:in
`send'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/base.rb:1919:in
`method_missing'
/home/git/chiliproject/vendor/plugins/redcase/app/helpers/redcase_helper.rb:17:in
`test_suite_root'
/home/git/chiliproject/app/controllers/redcase_controller.rb:30:in `index'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/base.rb:1333:in
`send'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/base.rb:1333:in
`perform_action_without_filters'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/filters.rb:617:in
`call_filters'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/filters.rb:610:in
`perform_action_without_benchmark'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activesupport-2.3.12/lib/active_support/core_ext/benchmark.rb:17:in
`ms'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activesupport-2.3.12/lib/active_support/core_ext/benchmark.rb:17:in
`ms'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/rescue.rb:160:in
`perform_action_without_flash'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/flash.rb:151:in
`perform_action'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/base.rb:532:in
`send'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/base.rb:532:in
`process_without_filters'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/filters.rb:606:in
`process'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/base.rb:391:in
`process'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/base.rb:386:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/routing/route_set.rb:438:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/dispatcher.rb:87:in
`dispatch'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/dispatcher.rb:121:in
`_call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/dispatcher.rb:130:in
`build_middleware_stack'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/query_cache.rb:29:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/query_cache.rb:29:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
`cache'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/query_cache.rb:9:in
`cache'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/query_cache.rb:28:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/string_coercion.rb:25:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/head.rb:9:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/methodoverride.rb:24:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/params_parser.rb:15:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/session/cookie_store.rb:99:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/failsafe.rb:26:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/lock.rb:11:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/lock.rb:11:in
`synchronize'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/lock.rb:11:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/dispatcher.rb:106:in
`call'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/rack/request_handler.rb:96:in
`process_request'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_request_handler.rb:513:in
`accept_and_process_next_request'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_request_handler.rb:274:in
`main_loop'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/classic_rails/application_spawner.rb:321:in
`start_request_handler'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/classic_rails/application_spawner.rb:275:in
`send'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/classic_rails/application_spawner.rb:275:in
`handle_spawn_application'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/utils.rb:479:in
`safe_fork'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/classic_rails/application_spawner.rb:270:in
`handle_spawn_application'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_server.rb:357:in
`__send__'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_server.rb:357:in
`server_main_loop'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_server.rb:206:in
`start_synchronously'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_server.rb:180:in
`start'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/classic_rails/application_spawner.rb:149:in
`start'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/spawn_manager.rb:219:in
`spawn_rails_application'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_server_collection.rb:132:in
`lookup_or_add'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/spawn_manager.rb:214:in
`spawn_rails_application'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_server_collection.rb:82:in
`synchronize'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_server_collection.rb:79:in
`synchronize'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/spawn_manager.rb:213:in
`spawn_rails_application'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/spawn_manager.rb:132:in
`spawn_application'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/spawn_manager.rb:275:in
`handle_spawn_application'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_server.rb:357:in
`__send__'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_server.rb:357:in
`server_main_loop'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_server.rb:206:in
`start_synchronously'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/helper-scripts/passenger-spawn-server:99
Thank you
--
Nagaraj
RE: Can't create test cases. - Added by Felix Schäfer at 2011-08-24 08:33 am
OK, this is a scoping problem in the plugin, please contact the author for support.
(And: any particular reason you have a redcase_controller
in your ChiliProject core? /home/git/chiliproject/app/controllers/redcase_controller.rb
)
RE: Can't create test cases. - Added by Nagaraj Ganachari at 2011-08-24 10:00 am
I don't know how it got into chiliproject core. I removed it. I have
installed redcase as a plugin. after that I have commented all
'redcase_performance' in the file
/home/git/chiliproject/vendor/plugins/redcase/app/controllers/redcase_controller.rb.
Now when I run the chiliproject, if click on testcases tab it shows
"undefined method `quoted_table_name' for ActiveRecord::TestCase:Class
" and full stack trace is pasted below.
What is the problem `quoted_table_name' method in ActiveRecord::TestCase:Class?
--------------stack trace----------
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/reflection.rb:187:in
`quoted_table_name'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/associations/has_many_association.rb:97:in
`construct_sql'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/associations/association_collection.rb:21:in
`initialize'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/associations.rb:1306:in
`new'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/associations.rb:1306:in
`test_cases'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:235:in
`send'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:235:in
`preload_has_many_association'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:120:in
`send'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:120:in
`preload_one_association'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activesupport-2.3.12/lib/active_support/ordered_hash.rb:115:in
`each'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activesupport-2.3.12/lib/active_support/ordered_hash.rb:115:in
`each'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:114:in
`preload_one_association'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:91:in
`preload_associations'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:95:in
`preload_associations'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:93:in
`each'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:93:in
`preload_associations'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:90:in
`preload_associations'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:90:in
`each'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/association_preload.rb:90:in
`preload_associations'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/base.rb:1584:in
`find_every'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/base.rb:1539:in
`find_initial'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/base.rb:617:in
`find'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/base.rb:1914:in
`find_by_project_id'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/base.rb:1919:in
`send'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/base.rb:1919:in
`method_missing'
/home/git/chiliproject/vendor/plugins/redcase/app/helpers/redcase_helper.rb:17:in
`test_suite_root'
/home/git/chiliproject/vendor/plugins/redcase/app/controllers/redcase_controller.rb:30:in
`index'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/base.rb:1333:in
`send'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/base.rb:1333:in
`perform_action_without_filters'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/filters.rb:617:in
`call_filters'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/filters.rb:610:in
`perform_action_without_benchmark'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activesupport-2.3.12/lib/active_support/core_ext/benchmark.rb:17:in
`ms'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activesupport-2.3.12/lib/active_support/core_ext/benchmark.rb:17:in
`ms'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/benchmarking.rb:68:in
`perform_action_without_rescue'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/rescue.rb:160:in
`perform_action_without_flash'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/flash.rb:151:in
`perform_action'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/base.rb:532:in
`send'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/base.rb:532:in
`process_without_filters'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/filters.rb:606:in
`process'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/base.rb:391:in
`process'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/base.rb:386:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/routing/route_set.rb:438:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/dispatcher.rb:87:in
`dispatch'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/dispatcher.rb:121:in
`_call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/dispatcher.rb:130:in
`build_middleware_stack'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/query_cache.rb:29:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/query_cache.rb:29:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in
`cache'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/query_cache.rb:9:in
`cache'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/query_cache.rb:28:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/activerecord-2.3.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/string_coercion.rb:25:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/head.rb:9:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/methodoverride.rb:24:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/params_parser.rb:15:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/session/cookie_store.rb:99:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/failsafe.rb:26:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/lock.rb:11:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/lock.rb:11:in
`synchronize'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/rack-1.1.2/lib/rack/lock.rb:11:in
`call'
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/actionpack-2.3.12/lib/action_controller/dispatcher.rb:106:in
`call'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/rack/request_handler.rb:96:in
`process_request'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_request_handler.rb:513:in
`accept_and_process_next_request'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_request_handler.rb:274:in
`main_loop'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/classic_rails/application_spawner.rb:321:in
`start_request_handler'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/classic_rails/application_spawner.rb:275:in
`send'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/classic_rails/application_spawner.rb:275:in
`handle_spawn_application'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/utils.rb:479:in
`safe_fork'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/classic_rails/application_spawner.rb:270:in
`handle_spawn_application'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_server.rb:357:in
`__send__'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_server.rb:357:in
`server_main_loop'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_server.rb:206:in
`start_synchronously'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_server.rb:180:in
`start'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/classic_rails/application_spawner.rb:149:in
`start'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/spawn_manager.rb:219:in
`spawn_rails_application'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_server_collection.rb:132:in
`lookup_or_add'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/spawn_manager.rb:214:in
`spawn_rails_application'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_server_collection.rb:82:in
`synchronize'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_server_collection.rb:79:in
`synchronize'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/spawn_manager.rb:213:in
`spawn_rails_application'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/spawn_manager.rb:132:in
`spawn_application'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/spawn_manager.rb:275:in
`handle_spawn_application'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_server.rb:357:in
`__send__'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_server.rb:357:in
`server_main_loop'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/lib/phusion_passenger/abstract_server.rb:206:in
`start_synchronously'
/var/lib/passenger-standalone/3.0.8-x86_64-ruby1.8.7-linux-gcc4.4.5-1002/support/helper-scripts/passenger-spawn-server:99
On Wed, Aug 24, 2011 at 2:03 PM, <project@chiliproject.org> wrote:
ChiliProject - Develop: RE: Can't create test cases.
Felix Schäfer
OK, this is a scoping problem in the plugin, please contact the author for
support.(And: any particular reason you have a redcase_controller in your
ChiliProject core?
/home/git/chiliproject/app/controllers/redcase_controller.rb)
You have received this notification because you have either subscribed to
it, or are involved in it.
To change your notification preferences, please click here:
https://www.chiliproject.org/my/account
--
Nagaraj
RE: Can't create test cases. - Added by Felix Schäfer at 2011-08-24 10:09 am
So you're still confirming what I posted earlier:
Felix Schäfer wrote:
Felix Schäfer wrote:
I suspect that some class in the plugin isn't initialized or loaded correctly because the rails autoloader goes looking for a
TestCase
class, findsActiveRecord::TestCase
(which is not the one the controller was looking for) and tries to use it instead of loading the one from the plugin.
Any reason why you're not contacting the plugin author? This is an error in the plugin code.
(1-9/9)