Permalink
Browse files

sphinx_types is only a class-level setting.

  • Loading branch information...
1 parent 64ee2b2 commit 3f13feebd95b67917ac9a295484ecc1a53354547 @pat pat committed May 11, 2012
Showing with 2 additions and 6 deletions.
  1. +2 −6 spec/thinking_sphinx/active_record_spec.rb
View
8 spec/thinking_sphinx/active_record_spec.rb
@@ -420,21 +420,17 @@
end
describe '#types_for_sphinx' do
- before :each do
- @person = Person.find(:first)
- end
-
after :each do
Person.set_sphinx_types nil
end
it "should return nil by default" do
- @person.sphinx_types.should == nil
+ Person.sphinx_types.should == nil
end
it "should return the specified value" do
Person.set_sphinx_types %w(Person Parent)
- @person.sphinx_types.should == %w(Person Parent)
+ Person.sphinx_types.should == %w(Person Parent)
end
end

0 comments on commit 3f13fee

Please sign in to comment.