Sha256: f3eaf9f608cdeb4d94379b8e2ec095e53c3c10559df7ca7431fa90b1aba30dfd
Contents?: true
Size: 689 Bytes
Versions: 20
Compression:
Stored size: 689 Bytes
Contents
require 'spec_helper' describe ActiveFedora::Base do before :all do class MockAFBaseRelationship < ActiveFedora::Base has_metadata name: 'foo', type: Hydra::ModsArticleDatastream end end after :all do Object.send(:remove_const, :MockAFBaseRelationship) end subject { MockAFBaseRelationship.new } context '#changed_for_autosave?' do before(:each) do expect(subject).to receive(:new_record?).and_return(false) expect(subject).to receive(:changed?).and_return(false) expect(subject).to receive(:marked_for_destruction?).and_return(false) end it { expect { subject.changed_for_autosave? }.to_not raise_error } end end
Version data entries
20 entries across 20 versions & 1 rubygems