Sha256: 2032a259347ec293830827d1e6c67f7e75c3946ee6cd3e687a214082e7092edf

Contents?: true

Size: 537 Bytes

Versions: 18

Compression:

Stored size: 537 Bytes

Contents

require 'spec_helper'

describe GroupDocs::Api::Helpers::SignaturePublic do
  subject do
    GroupDocs::Signature::Envelope.new
  end

  describe '#client_id' do
    it 'returns "public" if true is passed' do
      subject.send(:client_id, true).should == 'public'
    end

    it 'returns "{{client_id}}" if false is passed' do
      subject.send(:client_id, false).should == '{{client_id}}'
    end

    it 'returns "{{client_id}}" if nil is passed' do
      subject.send(:client_id, false).should == '{{client_id}}'
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
groupdocs-2.2.0 spec/groupdocs/api/helpers/signature_public_helper_spec.rb
groupdocs-2.1.0 spec/groupdocs/api/helpers/signature_public_helper_spec.rb
groupdocs-2.0.0 spec/groupdocs/api/helpers/signature_public_helper_spec.rb
groupdocs-1.9.0 spec/groupdocs/api/helpers/signature_public_helper_spec.rb
groupdocs-1.8.1 spec/groupdocs/api/helpers/signature_public_helper_spec.rb
groupdocs-1.8.0 spec/groupdocs/api/helpers/signature_public_helper_spec.rb
groupdocs-1.7.0 spec/groupdocs/api/helpers/signature_public_helper_spec.rb
groupdocs-1.6.0 spec/groupdocs/api/helpers/signature_public_helper_spec.rb
groupdocs-1.5.9 spec/groupdocs/api/helpers/signature_public_helper_spec.rb
groupdocs-1.5.8 spec/groupdocs/api/helpers/signature_public_helper_spec.rb
groupdocs-1.5.7 spec/groupdocs/api/helpers/signature_public_helper_spec.rb
groupdocs-1.5.6 spec/groupdocs/api/helpers/signature_public_helper_spec.rb
groupdocs-1.5.5 spec/groupdocs/api/helpers/signature_public_helper_spec.rb
groupdocs-1.5.4 spec/groupdocs/api/helpers/signature_public_helper_spec.rb
groupdocs-1.5.3 spec/groupdocs/api/helpers/signature_public_helper_spec.rb
groupdocs-1.5.2 spec/groupdocs/api/helpers/signature_public_helper_spec.rb
groupdocs-1.5.1 spec/groupdocs/api/helpers/signature_public_helper_spec.rb
groupdocs-1.5.0 spec/groupdocs/api/helpers/signature_public_helper_spec.rb