Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Commit

Permalink
Cleaning up test failure messages
Browse files Browse the repository at this point in the history
Cleaning up test failure messages and also fixing a typo (peaking should
be peeking)
  • Loading branch information
matt-richardson committed Jul 8, 2012
1 parent 7a5454c commit 59888dd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.md
Expand Up @@ -4684,7 +4684,7 @@ Once these specs are run, only the second one ('produces the correct HTML') fail
The second spec fails with the following message:
Expected '' to contain ```'<label class="todo-content">My Todo</label>'```.
```Expected '' to contain '<label class="todo-content">My Todo</label>'.```
The reason for this is the default behavior for render() doesn't create any markup. Let's write a replacement for render() which fixes this:
Expand Down Expand Up @@ -4779,8 +4779,9 @@ describe("When a todo is done", function() {
This will fail with the following message:
Expected '<label class="todo-content">My Todo</label>'
```Expected '<label class="todo-content">My Todo</label>'
to have class 'done'.
```
which can be fixed in the existing render() method as follows:
Expand Down Expand Up @@ -4881,7 +4882,7 @@ James Newbery was kind enough to help me with writing the Views section above an
##Exercise
As an exercise, I recommend now trying the Jasmine Koans in `practicals\jasmine-joans` and trying to fix some of the purposefully failing tests it has to offer. This is an excellent way of not just learning how Jasmine specs and suites work, but working through the examples (without peaking back) will also put your Backbone skills to test too.
As an exercise, I recommend now trying the Jasmine Koans in `practicals\jasmine-joans` and trying to fix some of the purposefully failing tests it has to offer. This is an excellent way of not just learning how Jasmine specs and suites work, but working through the examples (without peeking back) will also put your Backbone skills to test too.
##Further reading
Expand Down

0 comments on commit 59888dd

Please sign in to comment.