Skip to content

Instantly share code, notes, and snippets.

@ryansroberts
Created August 7, 2010 00:08
Show Gist options
  • Save ryansroberts/512243 to your computer and use it in GitHub Desktop.
Save ryansroberts/512243 to your computer and use it in GitHub Desktop.
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