spec/groupdocs/storage/file_spec.rb in groupdocs-1.2.7 vs spec/groupdocs/storage/file_spec.rb in groupdocs-1.2.8

- old
+ new

@@ -136,10 +136,10 @@ end.should_not raise_error(ArgumentError) end it 'downloads file to given path' do file = stub('file') - Object::File.should_receive(:open).with("#{path}/resume.pdf", 'w').and_yield(file) + Object::File.should_receive(:open).with("#{path}/resume.pdf", 'wb').and_yield(file) file.should_receive(:write).with(File.read('spec/support/files/resume.pdf')) subject.download!(path) end it 'returns saved file path' do