Created
August 28, 2014 02:27
-
-
Save mockra/7af2d94cee1e571a00b8 to your computer and use it in GitHub Desktop.
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
import { test, moduleForComponent } from 'ember-qunit'; | |
moduleForComponent('gravatar-image', 'GravatarImageComponent', { | |
}); | |
test('it renders with size and e-mail', function() { | |
var component = this.subject(); | |
Ember.run(function(){ | |
component.set('size', 400); | |
component.set('email', '[email protected]'); | |
}); | |
this.append(); | |
equal(find('img').attr('src'), | |
'http://www.gravatar.com/avatar/' + | |
window.md5('[email protected]') + | |
'?s=400'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment