Skip to content

Instantly share code, notes, and snippets.

@ramhoj
Created November 30, 2010 14:47
Show Gist options
  • Save ramhoj/721769 to your computer and use it in GitHub Desktop.
Save ramhoj/721769 to your computer and use it in GitHub Desktop.
overload_jquery_load.coffee
describe 'TaskNavigator', ->
template 'task_panel.html'
beforeEach ->
@taskNavigator = new TaskNavigator()
@taskNavigator.showSection.load = =>
$(".show").html(Evergreen.templates["task_show.html"])
@taskNavigator.bindEvents()
describe "click one of the tasks", ->
beforeEach -> $("a:contains('My first task')").click()
it "shows the task details", ->
expect("#tasks .show h2").toHaveText("Task info")
expect("#tasks .show h3").toHaveText("My first task")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment