spec/groupdocs/job_spec.rb in groupdocs-1.2.8 vs spec/groupdocs/job_spec.rb in groupdocs-1.2.9
- old
+ new
@@ -126,9 +126,14 @@
describe '#actions' do
it 'converts actions to human-readable format' do
subject.actions = 'Convert, Combine, CompressZip'
subject.actions.should == [:convert, :combine, :compress_zip]
end
+
+ it 'does nothing if there are no actions' do
+ subject.actions = nil
+ subject.actions.should be_nil
+ end
end
describe '#documents!' do
before(:each) do
mock_api_server(load_json('job_documents'))