Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
001cd5d0
Commit
001cd5d0
authored
Jun 12, 2013
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First few unit tests
parent
40098f65
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
7 deletions
+21
-7
cms/envs/common.py
+8
-7
cms/static/coffee/files.json
+1
-0
cms/static/coffee/spec/models/textbook_spec.coffee
+12
-0
No files found.
cms/envs/common.py
View file @
001cd5d0
...
@@ -32,21 +32,21 @@ from path import path
...
@@ -32,21 +32,21 @@ from path import path
MITX_FEATURES
=
{
MITX_FEATURES
=
{
'USE_DJANGO_PIPELINE'
:
True
,
'USE_DJANGO_PIPELINE'
:
True
,
'GITHUB_PUSH'
:
False
,
'GITHUB_PUSH'
:
False
,
'ENABLE_DISCUSSION_SERVICE'
:
False
,
'ENABLE_DISCUSSION_SERVICE'
:
False
,
'AUTH_USE_MIT_CERTIFICATES'
:
False
,
'AUTH_USE_MIT_CERTIFICATES'
:
False
,
# do not display video when running automated acceptance tests
# do not display video when running automated acceptance tests
'STUB_VIDEO_FOR_TESTING'
:
False
,
'STUB_VIDEO_FOR_TESTING'
:
False
,
# email address for staff (eg to request course creation)
# email address for staff (eg to request course creation)
'STAFF_EMAIL'
:
''
,
'STAFF_EMAIL'
:
''
,
'STUDIO_NPS_SURVEY'
:
True
,
'STUDIO_NPS_SURVEY'
:
True
,
# Segment.io - must explicitly turn it on for production
# Segment.io - must explicitly turn it on for production
'SEGMENT_IO'
:
False
,
'SEGMENT_IO'
:
False
,
...
@@ -242,6 +242,7 @@ PIPELINE_JS = {
...
@@ -242,6 +242,7 @@ PIPELINE_JS = {
)
+
[
'js/hesitate.js'
,
'js/base.js'
,
'js/views/feedback.js'
,
)
+
[
'js/hesitate.js'
,
'js/base.js'
,
'js/views/feedback.js'
,
'js/models/section.js'
,
'js/views/section.js'
,
'js/models/section.js'
,
'js/views/section.js'
,
'js/models/metadata_model.js'
,
'js/views/metadata_editor_view.js'
,
'js/models/metadata_model.js'
,
'js/views/metadata_editor_view.js'
,
'js/models/textbook.js'
,
'js/views/textbooks.js'
,
'js/views/assets.js'
],
'js/views/assets.js'
],
'output_filename'
:
'js/cms-application.js'
,
'output_filename'
:
'js/cms-application.js'
,
'test_order'
:
0
'test_order'
:
0
...
...
cms/static/coffee/files.json
View file @
001cd5d0
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
"js/vendor/underscore-min.js"
,
"js/vendor/underscore-min.js"
,
"js/vendor/underscore.string.min.js"
,
"js/vendor/underscore.string.min.js"
,
"js/vendor/backbone-min.js"
,
"js/vendor/backbone-min.js"
,
"js/vendor/backbone-associations-min.js"
,
"js/vendor/jquery.leanModal.min.js"
,
"js/vendor/jquery.leanModal.min.js"
,
"js/vendor/sinon-1.7.1.js"
,
"js/vendor/sinon-1.7.1.js"
,
"js/test/i18n.js"
"js/test/i18n.js"
...
...
cms/static/coffee/spec/models/textbook_spec.coffee
0 → 100644
View file @
001cd5d0
describe
"CMS.Models.Textbook"
,
->
beforeEach
->
@
model
=
new
CMS
.
Models
.
Textbook
()
it
"should have an empty name by default"
,
->
expect
(
@
model
.
get
(
"name"
)).
toEqual
(
""
)
it
"should not show chapters by default"
,
->
expect
(
@
model
.
get
(
"showChapters"
)).
toBeFalsy
()
it
"should have a ChapterSet with one chapter by default"
,
->
expect
(
@
model
.
get
(
"chapters"
).
length
).
toEqual
(
1
)
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