Sha256: 27b1574217a3ea331cf31b11287f2f897a0b6a1e7272aa782716338d0b5b61ce

Contents?: true

Size: 424 Bytes

Versions: 32

Compression:

Stored size: 424 Bytes

Contents

require 'spec_helper'

describe GroupDocs::Api::Helpers::Accessor do
  describe '.alias_accessor' do
    it 'aliases accessor to new name' do
      klass = GroupDocs::Api::Entity
      klass.class_eval <<-RUBY
        attr_accessor :guid
        alias_accessor :guiD, :guid
      RUBY
      subject = klass.new
      subject.should have_alias(:guiD,  :guid)
      subject.should have_alias(:guiD=, :guid=)
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

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