Fix tests

This commit is contained in:
Piotr Sarnacki 2016-01-04 12:04:17 +01:00
parent ac576077ab
commit ca3a24e686

View File

@ -10,8 +10,8 @@ test 'calculation of avatar urls via Gravatar', ->
committerEmail: 'author@example.com'
authorAvatarUrl: null
committerAvatarUrl: null
equal model.get('authorAvatarUrlOrGravatar'), 'https://www.gravatar.com/avatar/5c1e6d6e64e12aca17657581a48005d1?s=40&d=https%3A%2F%2Ftravis-ci.org%2Fimages%2Fui%2Fdefault-avatar.png', 'correctly sets gravatar image'
equal model.get('committerAvatarUrlOrGravatar'), 'https://www.gravatar.com/avatar/5c1e6d6e64e12aca17657581a48005d1?s=40&d=https%3A%2F%2Ftravis-ci.org%2Fimages%2Fui%2Fdefault-avatar.png', 'correctly sets gravatar image'
equal model.get('authorAvatarUrl'), 'https://www.gravatar.com/avatar/5c1e6d6e64e12aca17657581a48005d1?s=40&d=https%3A%2F%2Ftravis-ci.org%2Fimages%2Fui%2Fdefault-avatar.png', 'correctly sets gravatar image'
equal model.get('committerAvatarUrl'), 'https://www.gravatar.com/avatar/5c1e6d6e64e12aca17657581a48005d1?s=40&d=https%3A%2F%2Ftravis-ci.org%2Fimages%2Fui%2Fdefault-avatar.png', 'correctly sets gravatar image'
test 'calculation of avatar urls via overriding parameter', ->
model = @subject()
@ -21,5 +21,5 @@ test 'calculation of avatar urls via overriding parameter', ->
committerEmail: 'author@example.com'
authorAvatarUrl: 'http://example.com/test.jpg'
committerAvatarUrl: 'http://example.com/test2.jpg'
equal model.get('authorAvatarUrlOrGravatar'), 'http://example.com/test.jpg', 'correctly sets avatar'
equal model.get('committerAvatarUrlOrGravatar'), 'http://example.com/test2.jpg', 'correctly sets avatar'
equal model.get('authorAvatarUrl'), 'http://example.com/test.jpg', 'correctly sets avatar'
equal model.get('committerAvatarUrl'), 'http://example.com/test2.jpg', 'correctly sets avatar'