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
f71e54cc
Commit
f71e54cc
authored
Jul 06, 2012
by
Prem Sichanugrist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused Week Model
parent
2a36fee4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
9 deletions
+3
-9
cms/static/coffee/spec/models/week_spec.coffee
+0
-1
cms/static/coffee/spec/views/week_spec.coffee
+2
-6
cms/static/coffee/src/models/week.coffee
+0
-1
cms/static/coffee/src/views/week.coffee
+1
-1
No files found.
cms/static/coffee/spec/models/week_spec.coffee
deleted
100644 → 0
View file @
2a36fee4
describe
"CMS.Models.Week"
,
->
cms/static/coffee/spec/views/week_spec.coffee
View file @
f71e54cc
...
...
@@ -38,19 +38,15 @@ describe "CMS.Views.Week", ->
describe
"edit"
,
->
beforeEach
->
@
view
=
new
CMS
.
Views
.
Week
(
el
:
$
(
"#week"
),
height
:
100
).
render
()
new
CMS
.
Views
.
Week
(
el
:
$
(
"#week"
),
height
:
100
).
render
()
spyOn
(
CMS
,
"replaceView"
)
spyOn
(
CMS
.
Views
,
"WeekEdit"
)
.
andReturn
(
@
view
=
jasmine
.
createSpy
(
"Views.WeekEdit"
))
spyOn
(
CMS
.
Models
,
"Week"
)
.
andReturn
(
@
model
=
jasmine
.
createSpy
(
"Models.Week"
))
$
(
".week-edit"
).
click
()
it
"replace the content with edit week view"
,
->
expect
(
CMS
.
replaceView
).
toHaveBeenCalledWith
@
view
expect
(
CMS
.
Views
.
WeekEdit
).
toHaveBeenCalledWith
model
:
@
model
expect
(
CMS
.
Models
.
Week
).
toHaveBeenCalledWith
id
:
"i4x://mitx.edu/course/week"
expect
(
CMS
.
Views
.
WeekEdit
).
toHaveBeenCalled
()
describe
"on content.show"
,
->
beforeEach
->
...
...
cms/static/coffee/src/models/week.coffee
deleted
100644 → 0
View file @
2a36fee4
class
CMS
.
Models
.
Week
extends
Backbone
.
Model
cms/static/coffee/src/views/week.coffee
View file @
f71e54cc
...
...
@@ -16,7 +16,7 @@ class CMS.Views.Week extends Backbone.View
edit
:
(
event
)
=>
event
.
preventDefault
()
CMS
.
replaceView
(
new
CMS
.
Views
.
WeekEdit
(
model
:
new
CMS
.
Models
.
Week
(
id
:
@
$el
.
data
(
'id'
))
))
CMS
.
replaceView
(
new
CMS
.
Views
.
WeekEdit
())
setHeight
:
=>
@
$el
.
height
(
@
options
.
height
)
...
...
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