Sha256: 9719851d2bc8cfe9ea44892187d72449a7d03c838c253f05d5c981f849785dce

Contents?: true

Size: 643 Bytes

Versions: 44

Compression:

Stored size: 643 Bytes

Contents

require 'spec_helper'

describe CertificateHelper, organization_workspace: :test do
  helper CertificateHelper

  describe '#linkedin_url_to_post' do

    let(:certificate) { create :certificate, code: 'abc', created_at: Time.new(2000, 1, 1) }
    let(:link) { "https://www.linkedin.com/profile/add?startTask=CERTIFICATION_NAME&name=Test&organizationId=1&issueYear=2000&issueMonth=1&certUrl=http%3A%2F%2Ftest.localmumuki.io%2Fcertificates%2Fverify%2Fabc&certId=abc" }

    before { allow(ENV).to receive(:[]).with('MUMUKI_LINKEDIN_ORGANIZATION_ID').and_return '1' }
    it { expect(linkedin_post_url(certificate).to_s).to eq link }
  end

end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
mumuki-laboratory-9.23.0 spec/helpers/certificate_helper_spec.rb
mumuki-laboratory-9.22.0 spec/helpers/certificate_helper_spec.rb
mumuki-laboratory-9.21.0 spec/helpers/certificate_helper_spec.rb
mumuki-laboratory-9.20.1 spec/helpers/certificate_helper_spec.rb
mumuki-laboratory-9.20.0 spec/helpers/certificate_helper_spec.rb
mumuki-laboratory-9.19.0 spec/helpers/certificate_helper_spec.rb
mumuki-laboratory-9.18.1 spec/helpers/certificate_helper_spec.rb
mumuki-laboratory-9.18.0 spec/helpers/certificate_helper_spec.rb
mumuki-laboratory-9.17.0 spec/helpers/certificate_helper_spec.rb
mumuki-laboratory-9.16.0 spec/helpers/certificate_helper_spec.rb
mumuki-laboratory-9.15.0 spec/helpers/certificate_helper_spec.rb
mumuki-laboratory-9.14.1 spec/helpers/certificate_helper_spec.rb
mumuki-laboratory-9.14.0 spec/helpers/certificate_helper_spec.rb
mumuki-laboratory-9.13.2 spec/helpers/certificate_helper_spec.rb
mumuki-laboratory-9.13.1 spec/helpers/certificate_helper_spec.rb
mumuki-laboratory-9.13.0 spec/helpers/certificate_helper_spec.rb
mumuki-laboratory-9.12.1 spec/helpers/certificate_helper_spec.rb
mumuki-laboratory-9.12.0 spec/helpers/certificate_helper_spec.rb
mumuki-laboratory-9.11.0 spec/helpers/certificate_helper_spec.rb
mumuki-laboratory-9.10.0 spec/helpers/certificate_helper_spec.rb