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
1
Merge Requests
1
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
Truong Ba Dieu
VenShop
Commits
1568c214
Commit
1568c214
authored
Jul 22, 2015
by
Truong Ba Dieu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor
parent
40e5ad02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
31 deletions
+0
-31
lib/tasks/crawler.rake
+0
-3
spec/features/sign_up_spec.rb
+0
-28
No files found.
lib/tasks/crawler.rake
View file @
1568c214
...
...
@@ -4,10 +4,8 @@ namespace :crawler do
categories
=
%w(Books Music Electronics Software Kitchen)
categories
.
each
do
|
search_cate
|
puts
'111111111111111111111111111'
category
=
Category
.
find_or_create_by
(
name:
search_cate
)
(
1
..
5
).
each
do
|
page
|
puts
'2222222222222222222222222222'
next
if
category
.
products
.
count
>=
20
# limit 20 products each category
response
=
VacuumAwsService
.
item_search
({
query:
{
...
...
@@ -17,7 +15,6 @@ namespace :crawler do
'ResponseGroup'
=>
'Medium'
}
})
puts
'3333333333333333333333333333333'
items
=
VacuumAwsService
.
parse_items
(
response
)
items
.
each
do
|
item
|
...
...
spec/features/sign_up_spec.rb
deleted
100644 → 0
View file @
40e5ad02
require
'spec_helper'
feature
'Visitor signs up'
do
scenario
'with valid email and password'
do
sign_up_with
'valid@example.com'
,
'password'
expect
(
page
).
to
have_content
(
'Sign out'
)
end
scenario
'with invalid email'
do
sign_up_with
'invalid_email'
,
'password'
expect
(
page
).
to
have_content
(
'Sign in'
)
end
scenario
'with blank password'
do
sign_up_with
'valid@example.com'
,
''
expect
(
page
).
to
have_content
(
'Sign in'
)
end
def
sign_up_with
(
email
,
password
)
visit
"/users/sign_up"
fill_in
'Email'
,
with:
email
fill_in
'Password'
,
with:
password
click_button
'Sign up'
end
end
\ No newline at end of file
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