Error running tests with fresh copy from svn

Hello again

Just checked out the latest from svn, installed ferret, setup a test db,
and ran “rake”. It fails, and tracing into the error it looks like the
acts_as_ferret plugin is out of date with the latest ferret gem?

I just did “gem install ferret” and it grabbed version 0.10.1 - is that
too new for the plugin?

The full stack trace is below from rake - you can see that
“BooleanClause” doesn’t exist where the plugin expects if you load up
ferret in irb.

(in /SourceControl/SeekingAlpha/rforum)
WARNING: config/site.rb not found, using default settings from
config/default_site.rb
** Invoke default (first_time)
** Invoke test (first_time)
** Execute test
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:test:prepare
** Invoke db:test:clone (first_time)
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
** Execute db:test:clone
** Invoke db:schema:load (first_time)
** Invoke environment
** Execute db:schema:load
** Execute test:units
/usr/local/bin/ruby -Ilib:test
“/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb”
“test/unit/admin_test.rb” “test/unit/attachment_test.rb”
“test/unit/blocked_ip_test.rb”
“test/unit/common_model_behaviors_test.rb” “test/unit/forum_test.rb”
“test/unit/localization_test.rb” “test/unit/mailer_receive_test.rb”
“test/unit/mailer_test.rb” “test/unit/navbar_test.rb”
“test/unit/post_menu_test.rb” “test/unit/post_test.rb”
“test/unit/post_vote_test.rb” “test/unit/search_ferret_test.rb”
“test/unit/tag_test.rb” “test/unit/topic_read_test.rb”
“test/unit/topic_subscription_test.rb” “test/unit/topic_test.rb”
“test/unit/user_test.rb”
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in
const_missing': uninitialized constant BooleanClause (NameError) from /SourceControl/SeekingAlpha/rforum/vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:174:inacts_as_ferret’
from /SourceControl/SeekingAlpha/rforum/app/models/post.rb:24
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:inrequire’
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:65:in
require_or_load' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:30:independ_on’
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:in
require_dependency' from /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/dependencies.rb:72:inrequire_dependencies’
… 9 levels…
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
require' from ./test/unit/admin_test.rb:3 from /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb:5 from /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb:5 ** Invoke test:functionals (first_time) ** Invoke db:test:prepare ** Execute test:functionals /usr/local/bin/ruby -Ilib:test "/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb" "test/functional/application_controller_test.rb" "test/functional/attachment_controller_test.rb" "test/functional/forum_controller_test.rb" "test/functional/forum_helper_test.rb" "test/functional/topic_controller_test.rb" "test/functional/user_controller_test.rb" /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:inconst_missing’: uninitialized constant BooleanClause (NameError)
from
/SourceControl/SeekingAlpha/rforum/vendor/plugins/acts_as_ferret/lib/acts_as_ferret.rb:174:in
acts_as_ferret' from /SourceControl/SeekingAlpha/rforum/app/models/post.rb:24 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:65:inrequire_or_load’
from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:30:in
depend_on' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:85:inrequire_dependency’
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/dependencies.rb:72:in
require_dependencies' ... 9 levels... from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from ./test/functional/application_controller_test.rb:3
from
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb:5
from
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb:5
rake aborted!
Test failures
/usr/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/tasks/testing.rake:35
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in
execute' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:inexecute’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in invoke' /usr/local/lib/ruby/1.8/thread.rb:135:insynchronize’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in invoke' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:ininvoke_prerequisites’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in each' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:ininvoke_prerequisites’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in invoke' /usr/local/lib/ruby/1.8/thread.rb:135:insynchronize’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in invoke' /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:inrun’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run’
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7
/usr/local/bin/rake:18

thanks

  • Rob

Rob S. wrote:

Hello again

Just checked out the latest from svn, installed ferret, setup a test db,
and ran “rake”. It fails, and tracing into the error it looks like the
acts_as_ferret plugin is out of date with the latest ferret gem?

I just did “gem install ferret” and it grabbed version 0.10.1 - is that
too new for the plugin?

Yes, the included plugin is for use with 0.9.4. The new plugin for
0.10.1 is not yet working correctly.