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
984513d7
Commit
984513d7
authored
Nov 04, 2013
by
vulehuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rspec: card - step 3: when click product name
parent
a28faf92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
7 deletions
+27
-7
venshop_app/spec/requests/card_pages_spec.rb
+27
-7
No files found.
venshop_app/spec/requests/card_pages_spec.rb
View file @
984513d7
...
@@ -317,16 +317,36 @@ describe "CardPages" do
...
@@ -317,16 +317,36 @@ describe "CardPages" do
it
{
should
have_selector
(
'.alert.alert-error'
,
text:
'Please enter your shipping information'
)
}
it
{
should
have_selector
(
'.alert.alert-error'
,
text:
'Please enter your shipping information'
)
}
end
end
describe
"when click product name"
do
describe
"when pass step 1 and step 2"
do
end
before
do
visit
url_for
(
controller:
'cards'
,
action:
'checkout'
)
fill_in_order_form
()
click_button
"Continue"
end
describe
"when click Back"
do
it
{
should
have_title
(
full_title
(
'Confirmation'
))
}
end
it
{
should
have_selector
(
'h2'
,
text:
'Confirmation'
)
}
it
{
should
have_content
(
'Please check your information:'
)
}
it
{
should
have_selector
(
'.card-item-list'
)
}
describe
"when click Checkout"
do
describe
"when click product name"
do
end
let
(
:product
)
{
Product
.
first
}
before
do
page
.
find
(
:xpath
,
"//a[@href='
#{
product_url
(
product
)
}
']"
).
click
end
describe
"calculate price"
do
it
{
should
have_title
(
product
.
name
)
}
it
{
should
have_xpath
(
"//a[@href='
#{
cards_path
(
product_id:
product
.
id
)
}
']"
)
}
end
describe
"when click Back"
do
end
describe
"when click Checkout"
do
end
describe
"calculate price"
do
end
end
end
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