Sha256: d95c2492da7cae2114a8d19703b3a0e1b63fde9271072e71560fee07ce8bbed8
Contents?: true
Size: 622 Bytes
Versions: 14
Compression:
Stored size: 622 Bytes
Contents
require 'spec_helper' describe ActiveFedora::Base do before :all do class MockAFBaseRelationship < ActiveFedora::Base 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
14 entries across 14 versions & 1 rubygems