spec/groupdocs/document/annotation/reply_spec.rb in groupdocs-1.9.0 vs spec/groupdocs/document/annotation/reply_spec.rb in groupdocs-2.0.0
- old
+ new
@@ -22,17 +22,17 @@
end
it 'accepts access credentials hash' do
lambda do
described_class.get!(annotation, {}, :client_id => 'client_id', :private_key => 'private_key')
- end.should_not raise_error(ArgumentError)
+ end.should_not raise_error()
end
it 'accepts options hash' do
lambda do
described_class.get!(annotation, :after => Time.now)
- end.should_not raise_error(ArgumentError)
+ end.should_not raise_error()
end
it 'raises error if annotation is not an instance of GroupDocs::Document::Annotation' do
lambda { described_class.get!('Annotation') }.should raise_error(ArgumentError)
end
@@ -95,11 +95,11 @@
end
it 'accepts access credentials hash' do
lambda do
subject.create!(:client_id => 'client_id', :private_key => 'private_key')
- end.should_not raise_error(ArgumentError)
+ end.should_not raise_error()
end
it 'gets annotation guid' do
subject.should_receive(:get_annotation_guid)
subject.create!
@@ -121,11 +121,11 @@
end
it 'accepts access credentials hash' do
lambda do
subject.edit!(:client_id => 'client_id', :private_key => 'private_key')
- end.should_not raise_error(ArgumentError)
+ end.should_not raise_error()
end
end
describe '#remove!' do
before(:each) do
@@ -133,10 +133,10 @@
end
it 'accepts access credentials hash' do
lambda do
subject.remove!(:client_id => 'client_id', :private_key => 'private_key')
- end.should_not raise_error(ArgumentError)
+ end.should_not raise_error()
end
end
describe '#get_annotation_guid' do
it 'prefers annotation_guid over annotation.guid' do