Sha256: 8fda65f4ad22cb6985b0488949cc6dd22a005bce973e828e271564cc1a2af43e
Contents?: true
Size: 519 Bytes
Versions: 8
Compression:
Stored size: 519 Bytes
Contents
require 'spec_helper' describe ActiveFedora::ReloadOnSave do let(:file) { ActiveFedora::Base.new } it 'defaults to call not reload' do expect(file).not_to receive(:reload) file.save end it 'reload can be turned on' do file.reload_on_save = true expect(file).to receive(:reload) file.save end it 'allows reload to be turned off and on' do file.reload_on_save = true expect(file).to receive(:reload).once file.save file.reload_on_save = false file.save end end
Version data entries
8 entries across 8 versions & 1 rubygems