Permalink
Browse files

Spec fixes.

  • Loading branch information...
1 parent 648e639 commit 35e4cda68c15a6ff0506ed63cc4b48fab72d8be0 @pat pat committed May 11, 2012
Showing with 4 additions and 4 deletions.
  1. +3 −3 spec/thinking_sphinx/search_spec.rb
  2. +1 −1 spec/thinking_sphinx/source_spec.rb
@@ -1171,7 +1171,7 @@
}
}]
}
- Alpha.stub!(:find => [@alpha])
+ Alpha.stub :find => [@alpha], :unscoped => Alpha
end
it "should yield the match, group and count" do
@@ -1207,7 +1207,7 @@
}, :weight => 12
}]
}
- Alpha.stub!(:find => [@alpha])
+ Alpha.stub :find => [@alpha], :unscoped => Alpha
end
it "should yield the match and weight" do
@@ -1236,7 +1236,7 @@
}, :weight => 12
}]
}
- Alpha.stub!(:find => [@alpha])
+ Alpha.stub :find => [@alpha], :unscoped => Alpha
@search = ThinkingSphinx::Search.new
end
@@ -172,7 +172,7 @@
riddle = source.to_riddle_for_core(1, 0)
query = riddle.sql_query
- query.should match(/WHERE.+`people`\.`type` IN \('Child', 'Teenager'\)/)
+ query.should match(/WHERE.+`people`\.`type`.+'Child'.+ 'Teenager'\)/)
query.should_not match(/WHERE.+"users"."type" = 'Employee'/)
end
end

0 comments on commit 35e4cda

Please sign in to comment.