Sha256: 9f7b1d9498803cf7bde0b6209926c22bbbad1c19af8826f38367203b057d784c
Contents?: true
Size: 655 Bytes
Versions: 6
Compression:
Stored size: 655 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe 'ActiveRecord mixin and instance methods' do it "should know about relevant index attributes - relevant attribute changed" do @post = PostWithAuto.new @post.should_receive(:changes).and_return(:title => 'new title') Sunspot::Rails::Util.index_relevant_attribute_changed?(@post).should == true end 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 end
Version data entries
6 entries across 6 versions & 2 rubygems