Skip to content

Instantly share code, notes, and snippets.

@validkeys
Created September 8, 2014 13:05
Show Gist options
  • Select an option

  • Save validkeys/d8667a1b204fd9c7ddf1 to your computer and use it in GitHub Desktop.

Select an option

Save validkeys/d8667a1b204fd9c7ddf1 to your computer and use it in GitHub Desktop.
test 'I should be able to accept as MVP', ->
expect 2
login()
andThen(->
visit(baseUrl).then(->
App.__container__.lookup("store:main").find('userStory', 2)
).then((story) ->
model = story
equal(model.get('mvp'), false, "The user story is non mvp")
# ).then(->
nonmvp = $(find('.spec-user-stories .spec-user-story')[1])
click(nonmvp.find('.spec-accept-mvp'))
).then(->
equal(model.get('mvp'), true, "It is now MVP")
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment