# require 'rails_helper' # RSpec.describe User, type: :model do # context "when user's email is profile.image.test@example.com" do # let(:user) { build(:user, email: 'profile.image.test@example.com') } # describe '.image_url' do # subject { user.image_url } # it { is_expected.to match('https://www.gravatar.com/avatar/d2fd00e79c471f49c33b6bcb6b08d08d') } # end # end # end