Hi,

I'm getting the same errors too:

- ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
- rails 2.3.2
- rspec 1.2.7

latest versions of not-a-mock (the freelancing-gods fork) and thinking
sphinx.

I think Josh K is right, its the stubbing of the private class methods
in the search_spec tests: a quick bit of debugging shows that
attempting to unstub the client_from_options and search_conditions
methods means they no longer exist in the class. Looking at the class
methods just after they are stubbed shows two __unlogged_xxx methods
but no __unstubbed_xxx methods - so I'm guessing that when unstubbing
the lack of unstubbed methods is causing the problem, but without
looking more closely at not-a-mock I'm not sure what to suggest.

Could it be related to the changes allowing private/protected methods
to be stubbed?
http://github.com/freelancing-god/not-a-mock/commit/556dae4e20613985774028d80545d1c9f68526ac

In addition I'm also getting a couple of extra failures which may or
may not be related:

1)
NoMethodError in 'ThinkingSphinx::Configuration should insert set
index options into the configuration file'
undefined method `disable_range=' for #<Riddle::Configuration::Index:
0x3da95dc>
./spec/../lib/thinking_sphinx/active_record.rb:196:in `send'
./spec/../lib/thinking_sphinx/active_record.rb:196:in
`set_configuration_options_for_indexes'
./spec/../lib/thinking_sphinx/active_record.rb:195:in `each'
./spec/../lib/thinking_sphinx/active_record.rb:195:in
`set_configuration_options_for_indexes'
./spec/../lib/thinking_sphinx/active_record.rb:159:in
`to_riddle_for_core'
./spec/../lib/thinking_sphinx/active_record.rb:133:in `to_riddle'
./spec/../lib/thinking_sphinx/configuration.rb:147:in `build'
./spec/../lib/thinking_sphinx/configuration.rb:146:in `each'
./spec/../lib/thinking_sphinx/configuration.rb:146:in
`each_with_index'
./spec/../lib/thinking_sphinx/configuration.rb:146:in `build'
./spec/unit/thinking_sphinx/configuration_spec.rb:186:
./spec/unit/thinking_sphinx/configuration_spec.rb:184:in `each'
./spec/unit/thinking_sphinx/configuration_spec.rb:184:

2)
NoMethodError in 'ThinkingSphinx::Configuration should insert set
source options into the configuration file'
undefined method `disable_range=' for #<Riddle::Configuration::Index:
0x3da5d60>
./spec/../lib/thinking_sphinx/active_record.rb:196:in `send'
./spec/../lib/thinking_sphinx/active_record.rb:196:in
`set_configuration_options_for_indexes'
./spec/../lib/thinking_sphinx/active_record.rb:195:in `each'
./spec/../lib/thinking_sphinx/active_record.rb:195:in
`set_configuration_options_for_indexes'
./spec/../lib/thinking_sphinx/active_record.rb:159:in
`to_riddle_for_core'
./spec/../lib/thinking_sphinx/active_record.rb:133:in `to_riddle'
./spec/../lib/thinking_sphinx/configuration.rb:147:in `build'
./spec/../lib/thinking_sphinx/active_record.rb:196:in
`each_with_index'
./spec/../lib/thinking_sphinx/configuration.rb:146:in `each'
./spec/../lib/thinking_sphinx/configuration.rb:146:in
`each_with_index'
./spec/../lib/thinking_sphinx/configuration.rb:146:in `build'
./spec/unit/thinking_sphinx/configuration_spec.rb:199:
./spec/unit/thinking_sphinx/configuration_spec.rb:197:in `each'
./spec/unit/thinking_sphinx/configuration_spec.rb:197:

and

12)
NoMethodError in
'ThinkingSphinx::Source#to_riddle_for_core#sql_query_range should
select data from the model table'
undefined method `match' for nil:NilClass
./spec/unit/thinking_sphinx/source_spec.rb:136:

13)
NoMethodError in
'ThinkingSphinx::Source#to_riddle_for_core#sql_query_range should
select the minimum and the maximum id
s'
undefined method `match' for nil:NilClass
./spec/unit/thinking_sphinx/source_spec.rb:140:


Rob
--~--~---------~--~----~------------~-------~--~----~
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