diff options
| author | mo k <mo@mokhan.ca> | 2012-09-18 15:40:38 -0600 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-09-18 15:40:38 -0600 |
| commit | 327b72d0e9122dc1d0d989812a1c9e7a34982e7f (patch) | |
| tree | bdbb7dcf03d6303387d15ba734f395966608e129 /spec/javascripts | |
| parent | 9acee585e0238e2241a9bbcee9677f1fa9e5b645 (diff) | |
add new tag to the hidden tag list.
Diffstat (limited to 'spec/javascripts')
| -rw-r--r-- | spec/javascripts/presenters/new_tutorial_presenter_spec.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/javascripts/presenters/new_tutorial_presenter_spec.js b/spec/javascripts/presenters/new_tutorial_presenter_spec.js index ff60d283..9c6f34c0 100644 --- a/spec/javascripts/presenters/new_tutorial_presenter_spec.js +++ b/spec/javascripts/presenters/new_tutorial_presenter_spec.js @@ -4,6 +4,7 @@ describe ("NewTutorialPresenter", function() { add_tag_button: $('<button id="add-tag-button">'), tag_list: $('<ul id="tag-list">'), tag_input: $('<input type="text" />'), + hidden_tag_list: $('<input type="hidden" />'), }; sut = new NewTutorialPresenter(view); }); @@ -13,6 +14,9 @@ describe ("NewTutorialPresenter", 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>'); }); + it ("should add the new tag to the hidden list of tags", function() { + expect(view.hidden_tag_list.val()).toEqual('ruby'); + }); beforeEach (function() { sut.present(); view.tag_input.val('ruby'); |
