Created
November 9, 2012 10:26
-
-
Save tombruijn/4045020 to your computer and use it in GitHub Desktop.
Konacha testing setup for classes
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
# app/assets/javascripts/failer.js.coffee | |
class Failer | |
ze: (i) -> | |
i + "wa" | |
window.failer = new Failer |
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
# spec/javascripts/failer_spec.js.coffee | |
#= require spec_helper | |
#= require failer | |
describe "falier class", -> | |
it "is spec-ed", -> | |
failer = window.failer | |
failer.ze('hoi').should.equal('hoiwa') | |
failer.ze('hoi').should.equal('hoiwaadsfdsafdas') # This one will fail |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment