Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate the indexing concerns out of the Persistence module
- Loading branch information
Showing
5 changed files
with
70 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters