Sha256: eb409e05102a6ca091d36a3f56cc53ba5da9853fc1f54431f6bfdbb46eb7cf7d
Contents?: true
Size: 806 Bytes
Versions: 1
Compression:
Stored size: 806 Bytes
Contents
require "spec_helper" RSpec.describe Digicert::EmailValidation do describe ".all" do it "retrieves the list of email with validation status" do order_id = 123_456_789 stub_digicert_email_validations_api(order_id) email_validations = Digicert::EmailValidation.all(order_id: order_id) expect(email_validations.first.status).to eq("validated") expect(email_validations.first.email).to eq("email@example.com") end end describe ".valid?" do it "validates the email through digicert" do validation_attributes = { token: "token", email: "email@example.com" } stub_digicert_email_validations_validate_api(**validation_attributes) expect( Digicert::EmailValidation.valid?(**validation_attributes), ).to eq(true) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
digicert-1.0.0 | spec/digicert/email_validation_spec.rb |