add another avatar spec

This commit is contained in:
Konstantin Haase 2015-10-15 10:40:30 +02:00
parent 099d10f466
commit 4a11c22a74

View File

@ -38,8 +38,13 @@ describe Travis::API::V3::Renderer::AvatarURL do
it { should be == "https://0.gravatar.com/avatar/acbd18db4cc2f85cedef654fccc4a4d8" }
end
describe 'with email and empty gravatar_id' do
let(:object) { stub('input', gravatar_id: "", email: "foo") }
it { should be == "https://0.gravatar.com/avatar/acbd18db4cc2f85cedef654fccc4a4d8" }
end
describe 'with missing email' do
let(:object) { stub('input', email: nil) }
it { should be_nil }
end
end
end