Created
June 29, 2015 15:56
-
-
Save awead/9b383247c425d3d73d1d to your computer and use it in GitHub Desktop.
Test
This file contains hidden or 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
describe "class names that are literals" do | |
before :all do | |
class GenericAsset < ActiveFedora::Base | |
property :set, predicate: ::RDF::DC.title, class_name: "Set" | |
end | |
end | |
after :all do | |
Object.send(:remove_const, :GenericAsset) | |
end | |
subject do | |
g = GenericAsset.new | |
g.set = ["Test"] | |
g.save | |
g | |
end | |
it "indexes the literal string value" do | |
expect(subject.set).to eql ["Test"] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@awead: shouldn't the subject return g.to_solr?