Permalink
Browse files

spec for ensuring delta index overrides pre query

  • Loading branch information...
1 parent 063078e commit ebf77f720b08752af2873b4f04c9b1b37604ba36 @pat pat committed May 30, 2008
Showing with 8 additions and 0 deletions.
  1. +8 −0 spec/unit/thinking_sphinx/index_spec.rb
@@ -136,6 +136,14 @@
/source person_0_delta.+sql_query_range\s+= sql_query_range/m
)
end
+
+ it "should redefine the pre query for the delta index" do
+ @index.stub_method(:delta? => true)
+
+ @index.to_config(0, @database, "utf-8").should match(
+ /source person_0_delta.+sql_query_pre\s+=\s*\n/m
+ )
+ end
end
describe "prefix_fields method" do

0 comments on commit ebf77f7

Please sign in to comment.