Commit 1cfe16fd by vulehuan

update rspec for search

parent 364eb906
......@@ -29,6 +29,7 @@ class Product
searchable :auto_index => false do
text :name, :description
string :headline, :code, :condition, :price_currency
string :product_category_id
double :price
end
......
......@@ -25,10 +25,10 @@ describe "Product Search" do
describe "with matcher" do
it "should match if search matches" do
Sunspot.search(Product) do
with :product_category_id, 99
with :product_category_id, "99"
end
Sunspot.session.should have_search_params(:with, :product_category_id, 99)
Sunspot.session.should have_search_params(:with, :product_category_id, "99")
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment