spec/groupdocs/document/annotation/reply_spec.rb in groupdocs-1.1.0 vs spec/groupdocs/document/annotation/reply_spec.rb in groupdocs-1.2.0

- old
+ new

@@ -54,34 +54,23 @@ reply.should be_a(GroupDocs::Document::Annotation::Reply) end end end - it { should respond_to(:annotation) } - it { should respond_to(:annotation=) } - it { should respond_to(:text) } - it { should respond_to(:text=) } - it { should respond_to(:guid) } - it { should respond_to(:guid=) } - it { should respond_to(:annotationGuid) } - it { should respond_to(:annotationGuid=) } - it { should respond_to(:userGuid) } - it { should respond_to(:userGuid=) } - it { should respond_to(:userName) } - it { should respond_to(:userName=) } - it { should respond_to(:text) } - it { should respond_to(:text=) } - it { should respond_to(:repliedOn) } - it { should respond_to(:repliedOn=) } + it { should have_accessor(:annotation) } + it { should have_accessor(:text) } + it { should have_accessor(:guid) } + it { should have_accessor(:annotationGuid) } + it { should have_accessor(:userGuid) } + it { should have_accessor(:userName) } + it { should have_accessor(:text) } + it { should have_accessor(:repliedOn) } - it { should have_alias(:annotation_guid, :annotationGuid) } - it { should have_alias(:annotation_guid=, :annotationGuid=) } - it { should have_alias(:user_guid, :userGuid) } - it { should have_alias(:user_guid=, :userGuid=) } - it { should have_alias(:user_name, :userName) } - it { should have_alias(:user_name=, :userName=) } + it { should alias_accessor(:annotation_guid, :annotationGuid) } + it { should alias_accessor(:user_guid, :userGuid) } + it { should alias_accessor(:user_name, :userName) } # Reply#replied_on is overwritten - it { should have_alias(:replied_on=, :repliedOn=) } + it { should have_alias(:replied_on=, :repliedOn=) } describe '#initialize' do it 'raises error if annotation is not specified' do -> { described_class.new }.should raise_error(ArgumentError)