Sha256: 1a6caca3b338fe75be426a688829be4ae246fde98513112710401984561b01ed

Contents?: true

Size: 345 Bytes

Versions: 3

Compression:

Stored size: 345 Bytes

Contents

require 'spec_helper'

describe PictureFrom::GravatarPicture do

  describe '#picture_from_email' do
    subject { described_class.new }

    it 'returns the image url' do
      link = subject.picture_from_email('karreiro@gmail.com')
      expect(link).to eq('http://www.gravatar.com/avatar/16be5820a296f5bce151f0c1b5e16fc8')
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
picture_from-1.0.1 spec/lib/picture_from/gravatar_picture_spec.rb
picture_from-1.0.0 spec/lib/picture_from/gravatar_picture_spec.rb
picture_from-0.0.1 spec/lib/picture_from/gravatar_picture_spec.rb