diff options
| author | mo k <mo@mokhan.ca> | 2012-09-18 15:03:56 -0600 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-09-18 15:03:56 -0600 |
| commit | 9acee585e0238e2241a9bbcee9677f1fa9e5b645 (patch) | |
| tree | 778f160e871e4120f5d534b03753db8d646a193d /spec/javascripts | |
| parent | cfd4494575a24cf812f16a0862ec27fa94369261 (diff) | |
extract method to create list items.
Diffstat (limited to 'spec/javascripts')
| -rw-r--r-- | spec/javascripts/presenters/new_tutorial_presenter_spec.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/spec/javascripts/presenters/new_tutorial_presenter_spec.js b/spec/javascripts/presenters/new_tutorial_presenter_spec.js index fa14eb54..ff60d283 100644 --- a/spec/javascripts/presenters/new_tutorial_presenter_spec.js +++ b/spec/javascripts/presenters/new_tutorial_presenter_spec.js @@ -1,7 +1,6 @@ describe ("NewTutorialPresenter", function() { beforeEach (function() { view = { - add_tag:null, add_tag_button: $('<button id="add-tag-button">'), tag_list: $('<ul id="tag-list">'), tag_input: $('<input type="text" />'), @@ -10,15 +9,6 @@ describe ("NewTutorialPresenter", function() { }); var sut; var view; - describe ("when a new tag is added", function() { - it ("should add the new tag to the list of tags", function() { - expect(view.add_tag).toHaveBeenCalledWith('<li><a href="#" class="label">blah</a></li>'); - }); - beforeEach (function() { - spyOn(view, 'add_tag'); - sut.add_tag('blah'); - }); - }); describe ("when the add tag button is clicked", function() { it ("should add the new tag to the list of tags", function() { expect(view.tag_list.html()).toEqual('<li><a href="#" class="label">ruby</a></li>'); |
