Sha256: 07ba2eb604c546e7103717657ca8eb52c55811ea4ea296b9595516f3db4e1f68
Contents?: true
Size: 469 Bytes
Versions: 2
Compression:
Stored size: 469 Bytes
Contents
RSpec.describe ActiveFedora::File do describe "after_save" do let(:callback) { proc { |*args| nil } } around(:example) do |example| ActiveSupport::Notifications.subscribed(callback, Ddr::Notifications::FILE_SAVE) do example.run end end it "sends a notification" do expect(callback).to receive(:call).once file = described_class.new file.content = "foo" file.save file.save end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ddr-models-3.0.8 | spec/models/active_fedora_file_spec.rb |
ddr-models-3.0.7 | spec/models/active_fedora_file_spec.rb |