Skip to content

Commit

Permalink
Update query parameters for newer ruby-rdf
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcolvar authored and dunn committed Jan 24, 2023
1 parent 5c53d4d commit 542d0b7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class SampleResource < Valkyrie::Resource

context "with the default schema" do
let(:schema) { Valkyrie::Persistence::Fedora::PermissiveSchema.new }
let(:query) { converter.convert.graph.query(predicate: RDF::URI("http://example.com/predicate/title")) }
let(:query) { converter.convert.graph.query([nil, RDF::URI("http://example.com/predicate/title"), nil]) }

it "persists to Fedora using a fake predicate" do
expect(query.first.object.to_s).to eq("My Title")
Expand All @@ -36,7 +36,7 @@ class SampleResource < Valkyrie::Resource

context "with a defined schema" do
let(:schema) { Valkyrie::Persistence::Fedora::PermissiveSchema.new(title: ::RDF::Vocab::DC.title) }
let(:query) { converter.convert.graph.query(predicate: ::RDF::Vocab::DC.title) }
let(:query) { converter.convert.graph.query([nil, ::RDF::Vocab::DC.title, nil]) }

it "persists to Fedora using the defined predicate" do
expect(query.first.object.to_s).to eq("My Title")
Expand Down

0 comments on commit 542d0b7

Please sign in to comment.