Sha256: 07aac419774fd38fecf7d9f9f042e631adb7afb120daa0c25047491e0c69fe80

Contents?: true

Size: 565 Bytes

Versions: 4

Compression:

Stored size: 565 Bytes

Contents

require 'spec_helper'

describe ActiveFedora::Indexing do
  context "internal methods" do
    before :all do
      class SpecNode
        include ActiveFedora::Indexing
      end
    end
    after :all do
      Object.send(:remove_const, :SpecNode)
    end

    subject { SpecNode.new }

    describe "#create_needs_index?" do
      subject { SpecNode.new.send(:create_needs_index?) }
      it { should be true }
    end

    describe "#update_needs_index?" do
      subject { SpecNode.new.send(:update_needs_index?) }
      it { should be true }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active-fedora-9.0.0.beta4 spec/unit/indexing_spec.rb
active-fedora-9.0.0.beta3 spec/unit/indexing_spec.rb
active-fedora-9.0.0.beta2 spec/unit/indexing_spec.rb
active-fedora-9.0.0.beta1 spec/unit/indexing_spec.rb