-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
30 lines (18 loc) · 1.04 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
An example of unit testing handlebars templates bound to ember.js models
To run the django web app
1.) mkvirtualenv example
2.) workon example
3.) pip install -r requirements.txt
4.) python manage.py syncdb --noinput
5.) python manage.py runserver
To run the jasmine tests
1. npm install
2. node node_modules/jasmine-phantom-node/bin/jasmine-phantom-node example/static
The jasmine tests that show how you can assert against your bound views
https://github.com/toranb/ember-template-jasmine-example/blob/master/example/static/script/tests/views.spec.js
The index.html page that wires up the web app
https://github.com/toranb/ember-template-jasmine-example/blob/master/example/templates/example/index.html
The ember.js javascript that does the pagination over a list of models
https://github.com/toranb/ember-template-jasmine-example/blob/master/example/static/script/app/app.js
Another jasmine test class that I used to test the pagination mixin
https://github.com/toranb/ember-template-jasmine-example/blob/master/example/static/script/tests/people.spec.js