Sha256: d351d5997d07904891829ba4bfd2db235aef48e887732dbb69521e3a6da16ca1

Contents?: true

Size: 537 Bytes

Versions: 1

Compression:

Stored size: 537 Bytes

Contents

require 'spec_helper'

describe ActiveFedora::Persistence do
  before :all do
    class SpecNode
      include ActiveFedora::Persistence
    end
  end
  after :all do
    Object.send(:remove_const, :SpecNode)
  end

  subject { SpecNode.new }

  describe '#create_needs_index?' do
    it 'should be true' do
      expect(subject.send(:create_needs_index?)).to be_truthy
    end
  end

  describe '#update_needs_index?' do
      it 'should be true' do
        expect(subject.send(:update_needs_index?)).to be_truthy
      end
  end


end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active-fedora-6.8.0 spec/unit/persistence_spec.rb