Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shotengai
Project
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
shotengai
Commits
1f2477a1
Commit
1f2477a1
authored
Sep 15, 2017
by
ivan Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec
parent
02d394bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
models_spec.rb
spec/shotengai/models_spec.rb
+16
-2
No files found.
spec/shotengai/models_spec.rb
View file @
1f2477a1
...
@@ -156,9 +156,23 @@ RSpec.describe 'Shotengai Models' do
...
@@ -156,9 +156,23 @@ RSpec.describe 'Shotengai Models' do
# shotengai_series_id: @series.id,
# shotengai_series_id: @series.id,
# count: 10
# count: 10
# )
# )
expect
(
@snapshot
.
test_order_cart
).
to
eq
(
@buyer
.
test_order_cart
)
end
end
describe
'With snapshot'
do
# Add Snapshot to Cart
# TODO: test successfully in e-mall-draft
# @buyer.add_to_test_order_cart(@snapshot)
# @buyer.add_to_test_order_cart(
# shotengai_series_id: @series.id,
# count: 10
# )
before
do
@snapshot
.
update
(
shotengai_order_id:
@buyer
.
test_order_cart
.
id
)
end
it
''
do
expect
(
@snapshot
.
test_order_cart
).
to
eq
(
@buyer
.
test_order_cart
)
end
end
end
end
describe
'About Order'
do
describe
'About Order'
do
...
...
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