Skip to content

Instantly share code, notes, and snippets.

@randallb
Created December 6, 2012 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save randallb/4226335 to your computer and use it in GitHub Desktop.
Save randallb/4226335 to your computer and use it in GitHub Desktop.
#= require angular/angular-mocks.js
fn = (suiter) ->
describe "awesome", ->
it "should be cool", ->
console.log "success!"
console.log suiter
fn("suit")
describe "Entry Module", ->
beforeEach module 'entry'
describe 'entry class', ->
entry = null
beforeEach inject (Entry) ->
entry = new Entry test_data: "yo"
for key in entry.badKeys
entry[key] = "bad key!"
describe "sending to air", ->
it 'should not contain bad keys.', ->
air = entry.prepareForAir()
for key in entry.badKeys
expect(air[key]).toBe(undefined)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment