Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venshop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huanvl
venshop
Commits
1cfe16fd
Commit
1cfe16fd
authored
Nov 11, 2013
by
vulehuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update rspec for search
parent
364eb906
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
venshop_app/app/models/product.rb
+1
-0
venshop_app/spec/requests/search_pages_spec.rb
+2
-2
No files found.
venshop_app/app/models/product.rb
View file @
1cfe16fd
...
...
@@ -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
...
...
venshop_app/spec/requests/search_pages_spec.rb
View file @
1cfe16fd
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment