spec/groupdocs/questionnaire/execution_spec.rb in groupdocs-1.9.0 vs spec/groupdocs/questionnaire/execution_spec.rb in groupdocs-2.0.0
- old
+ new
@@ -11,11 +11,11 @@
end
it 'accepts access credentials hash' do
lambda do
described_class.get!('45dsfh9348uf0fj834y92h', :client_id => 'client_id', :private_key => 'private_key')
- end.should_not raise_error(ArgumentError)
+ end.should_not raise_error()
end
it 'returns GroupDocs::Questionnaire::Execution object' do
described_class.get!('45dsfh9348uf0fj834y92h').should be_a(GroupDocs::Questionnaire::Execution)
end
@@ -85,11 +85,11 @@
end
it 'accepts access credentials hash' do
lambda do
subject.set_status!(:submitted, :client_id => 'client_id', :private_key => 'private_key')
- end.should_not raise_error(ArgumentError)
+ end.should_not raise_error()
end
it 'parses status' do
subject.should_receive(:parse_status).with(:submitted).and_return('Submitted')
subject.set_status!(:submitted)
@@ -107,11 +107,11 @@
end
it 'accepts access credentials hash' do
lambda do
subject.update!(:client_id => 'client_id', :private_key => 'private_key')
- end.should_not raise_error(ArgumentError)
+ end.should_not raise_error()
end
it 'uses hashed version of self as request body' do
subject.should_receive(:to_hash).and_return({})
subject.update!
@@ -124,11 +124,11 @@
end
it 'accepts access credentials hash' do
lambda do
subject.delete!(:client_id => 'client_id', :private_key => 'private_key')
- end.should_not raise_error(ArgumentError)
+ end.should_not raise_error()
end
end
describe '#fill!' do
before(:each) do
@@ -140,16 +140,16 @@
end
it 'accepts access credentials hash' do
lambda do
subject.fill!(datasource, {}, :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
subject.fill!(datasource, :new_type => :pdf)
- end.should_not raise_error(ArgumentError)
+ end.should_not raise_error()
end
it 'raises error if datasource is not GroupDocs::Datasource object' do
lambda { subject.fill!('Datasource') }.should raise_error(ArgumentError)
end