Skip to content

Instantly share code, notes, and snippets.

@chrismcg
Created March 21, 2013 11:01
Show Gist options
  • Save chrismcg/5212237 to your computer and use it in GitHub Desktop.
Save chrismcg/5212237 to your computer and use it in GitHub Desktop.
Simple ember jasmine spec
describe "StateLabelView", ->
stateLabelView = null
beforeEach ->
stateLabelView = App.StateLabelView.create()
Ember.run -> stateLabelView.append()
afterEach ->
Ember.run -> stateLabelView.remove()
it "uses the stateLabel attribute to calculate the labelClass", ->
Ember.run -> stateLabelView.set('stateLabel', 'in_progress')
expect(stateLabelView.get('labelClass')).toEqual('label-info')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment