Hello I am attempting to test some functionally that is using thinking
sphinx. I am testing with cucumber. I am currently writing the step
for rebuilding the index.

When /^The search index is rebuilt$/ do
  ThinkingSphinx::Test.index
  sleep(0.25)
end

I have also added

require 'cucumber/thinking_sphinx/external_world'
Cucumber::ThinkingSphinx::ExternalWorld.new
Cucumber::Rails::World.use_transactional_fixtures = false

to my env.rb file.

When I run cucumber I get the following error. Just wondering if I
have missed out on anything.

(in /Users/stewartmatheson/code/rails/telescope)
bundle exec /Users/stewartmatheson/.rvm/rubies/ruby-1.8.7-p174/bin/
ruby -I "/Users/stewartmatheson/.rvm/gems/ruby-1.8.7-p...@rails3/gems/
cucumber-0.8.5/lib:lib" "/Users/stewartmatheson/.rvm/gems/ruby-1.8.7-
p...@rails3/gems/cucumber-0.8.5/bin/cucumber"  --profile default
Using the default profile...
DEPRECATION WARNING: subclasses is deprecated and will be removed from
Rails 3.0 (use descendants instead). (called from send at /Users/
stewartmatheson/.rvm/gems/ruby-1.8.7-p...@rails3/gems/thinking-
sphinx-2.0.0.rc1/lib/thinking_sphinx/context.rb:58)
DEPRECATION WARNING: subclasses is deprecated and will be removed from
Rails 3.0 (use descendants instead). (called from send at /Users/
stewartmatheson/.rvm/gems/ruby-1.8.7-p...@rails3/gems/thinking-
sphinx-2.0.0.rc1/lib/thinking_sphinx/context.rb:58)
DEPRECATION WARNING: subclasses is deprecated and will be removed from
Rails 3.0 (use descendants instead). (called from send at /Users/
stewartmatheson/.rvm/gems/ruby-1.8.7-p...@rails3/gems/thinking-
sphinx-2.0.0.rc1/lib/thinking_sphinx/context.rb:58)
DEPRECATION WARNING: subclasses is deprecated and will be removed from
Rails 3.0 (use descendants instead). (called from add_indexed_models
at /Users/stewartmatheson/.rvm/gems/ruby-1.8.7-p...@rails3/gems/
thinking-sphinx-2.0.0.rc1/lib/thinking_sphinx/context.rb:43)
uninitialized constant Cucumber::ThinkingSphinx (NameError)
/Users/stewartmatheson/.rvm/gems/ruby-1.8.7-p...@rails3/gems/thinking-
sphinx-2.0.0.rc1/lib/cucumber/thinking_sphinx/external_world.rb:3
/Users/stewartmatheson/code/rails/telescope/features/support/env.rb:60
/Users/stewartmatheson/.rvm/gems/ruby-1.8.7-p...@rails3/gems/
cucumber-0.8.5/bin/../lib/cucumber/rb_support/rb_language.rb:141:in
`require'
/Users/stewartmatheson/.rvm/gems/ruby-1.8.7-p...@rails3/gems/
cucumber-0.8.5/bin/../lib/cucumber/rb_support/rb_language.rb:141:in
`load_code_file'
/Users/stewartmatheson/.rvm/gems/ruby-1.8.7-p...@rails3/gems/
cucumber-0.8.5/bin/../lib/cucumber/step_mother.rb:108:in
`load_code_file'
/Users/stewartmatheson/.rvm/gems/ruby-1.8.7-p...@rails3/gems/
cucumber-0.8.5/bin/../lib/cucumber/step_mother.rb:100:in
`load_code_files'
/Users/stewartmatheson/.rvm/gems/ruby-1.8.7-p...@rails3/gems/
cucumber-0.8.5/bin/../lib/cucumber/step_mother.rb:99:in `each'
/Users/stewartmatheson/.rvm/gems/ruby-1.8.7-p...@rails3/gems/
cucumber-0.8.5/bin/../lib/cucumber/step_mother.rb:99:in
`load_code_files'
/Users/stewartmatheson/.rvm/gems/ruby-1.8.7-p...@rails3/gems/
cucumber-0.8.5/bin/../lib/cucumber/cli/main.rb:53:in `execute!'
/Users/stewartmatheson/.rvm/gems/ruby-1.8.7-p...@rails3/gems/
cucumber-0.8.5/bin/../lib/cucumber/cli/main.rb:25:in `execute'
/Users/stewartmatheson/.rvm/gems/ruby-1.8.7-p...@rails3/gems/
cucumber-0.8.5/bin/cucumber:8
rake aborted!
Command failed with status (1): [bundle exec /Users/
stewartmatheson/.rvm/ru...]

I am using rails 3.0.0.rc and ruby 1.8.7

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to