Skip to content

Instantly share code, notes, and snippets.

@awead
Created June 29, 2015 15:56
Show Gist options
  • Save awead/9b383247c425d3d73d1d to your computer and use it in GitHub Desktop.
Save awead/9b383247c425d3d73d1d to your computer and use it in GitHub Desktop.
Test
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
@jcoyne
Copy link

jcoyne commented Jun 29, 2015

@awead: shouldn't the subject return g.to_solr?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment