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
cb9d4cf3
Commit
cb9d4cf3
authored
Nov 04, 2013
by
vulehuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rspec: card - step 2: click continue with valid infos
parent
14ccbf2f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
venshop_app/app/views/cards/_item_list.html.erb
+1
-1
venshop_app/spec/requests/card_pages_spec.rb
+11
-1
No files found.
venshop_app/app/views/cards/_item_list.html.erb
View file @
cb9d4cf3
<table
class=
"table table-hover"
>
<table
class=
"table table-hover
card-item-list
"
>
<thead>
<tr>
<td>
No.
</td>
...
...
venshop_app/spec/requests/card_pages_spec.rb
View file @
cb9d4cf3
...
...
@@ -182,7 +182,7 @@ describe "CardPages" do
page
.
find
(
'.product-detail'
).
click_link
(
'Order'
)
end
end
# let(:customer_info) { FactoryGirl.create(:my_card) }
describe
"with invalid information"
do
describe
"when fullname is not present"
do
before
do
...
...
@@ -241,6 +241,16 @@ describe "CardPages" do
end
describe
"with valid information"
do
before
do
visit
url_for
(
controller:
'cards'
,
action:
'checkout'
)
fill_in_order_form
()
click_button
"Continue"
end
it
{
should
have_title
(
full_title
(
'Confirmation'
))
}
it
{
should
have_selector
(
'h2'
,
text:
'Confirmation'
)
}
it
{
should
have_content
(
'Please check your information:'
)
}
it
{
should
have_selector
(
'.card-item-list'
)
}
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