Created
August 7, 2010 00:08
-
-
Save ryansroberts/512243 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe 'selecting a related term in the term viewer' | |
before_each | |
model = new ko.tagging.viewmodel() | |
tagging = $('#taggingContainer').tagging() | |
tagging.tagging("setmodel",model) | |
mock_request().and_return({Id : 1,Name: "test1",Paths:[ ],RelatedTo:[],BroaderTerms:[],NarrowerTerms:[]},'application/json') | |
model.termviewerviewmodel.selectedTerm({Id: 1, Name: "Tag 1"}) | |
end | |
it 'changes the currently selected term' | |
model.termviewerviewmodel.term().should.not.be_null | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment