Sha256: ab6824259349ece23491c3f795ebb308c966799361d69de8445ed8da23a7e1c7

Contents?: true

Size: 803 Bytes

Versions: 1

Compression:

Stored size: 803 Bytes

Contents

require 'spec_helper'

describe GroupDocs::Signature::Recipient do

  it_behaves_like GroupDocs::Api::Entity

  it { should have_accessor(:id)        }
  it { should have_accessor(:email)     }
  it { should have_accessor(:firstName) }
  it { should have_accessor(:lastName)  }
  it { should have_accessor(:nickname)  }
  it { should have_accessor(:roleId)    }
  it { should have_accessor(:order)     }
  it { should have_accessor(:status)    }

  it { should alias_accessor(:first_name, :firstName) }
  it { should alias_accessor(:last_name,  :lastName)  }
  it { should alias_accessor(:role_id,    :roleId)    }

  describe '#status' do
    it 'converts status to human-readable format' do
      subject.status = 1
      subject.status.should == :notified
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
groupdocs-2.3.0 spec/groupdocs/signature/recipient_spec.rb