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