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

Version Path
active-fedora-10.3.0 spec/integration/autosave_association_spec.rb
active-fedora-10.3.0.rc2 spec/integration/autosave_association_spec.rb
active-fedora-10.3.0.rc1 spec/integration/autosave_association_spec.rb
active-fedora-10.2.1 spec/integration/autosave_association_spec.rb
active-fedora-10.2.0 spec/integration/autosave_association_spec.rb
active-fedora-11.0.0.rc1 spec/integration/autosave_association_spec.rb
active-fedora-10.1.0 spec/integration/autosave_association_spec.rb
active-fedora-10.1.0.rc1 spec/integration/autosave_association_spec.rb
active-fedora-10.0.0 spec/integration/autosave_association_spec.rb
active-fedora-10.0.0.beta4 spec/integration/autosave_association_spec.rb
active-fedora-10.0.0.beta3 spec/integration/autosave_association_spec.rb
active-fedora-10.0.0.beta2 spec/integration/autosave_association_spec.rb
active-fedora-10.0.0.beta1 spec/integration/autosave_association_spec.rb
active-fedora-9.13.0 spec/integration/autosave_association_spec.rb