spec/thinking_sphinx_spec.rb in thinking-sphinx-1.3.9 vs spec/thinking_sphinx_spec.rb in thinking-sphinx-1.3.10

- old
+ new

@@ -14,9 +14,20 @@ ThinkingSphinx.context.indexed_models.replace(models) end end + describe '.reset_context!' do + it "should remove the existing Context instance" do + existing = ThinkingSphinx.context + + ThinkingSphinx.reset_context! + ThinkingSphinx.context.should_not == existing + + Thread.current[:thinking_sphinx_context] = existing + end + end + describe '.define_indexes?' do it "should define indexes by default" do ThinkingSphinx.define_indexes?.should be_true end end