spec/util_spec.rb in sunspot_rails-0.11.4 vs spec/util_spec.rb in sunspot_rails-0.11.5

- old
+ new

@@ -10,6 +10,12 @@ it "should know about relevant index attributes - no relevant attribute changed" do @post = PostWithAuto.new @post.should_receive(:changes).and_return(:updated_at => Date.tomorrow) Sunspot::Rails::Util.index_relevant_attribute_changed?(@post).should == false end + + it "should know about relevant index attributes with subclasses" do + @post = PhotoPostWithAuto.new + @post.should_receive(:changes).and_return(:title => 'new_title') + Sunspot::Rails::Util.index_relevant_attribute_changed?(@post).should == true + end end