Created
March 21, 2013 11:01
-
-
Save chrismcg/5212237 to your computer and use it in GitHub Desktop.
Simple ember jasmine spec
This file contains hidden or 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
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