Skip to content

Commit

Permalink
fix data file unit tests #2116
Browse files Browse the repository at this point in the history
  • Loading branch information
stuzart committed Jan 22, 2025
1 parent c97d3b3 commit dcb8b90
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/unit/data_file_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,12 @@ class DataFileTest < ActiveSupport::TestCase
df.reload
rdf = df.to_rdf
assert_not_nil rdf
# just checks it is valid rdf/xml and contains some statements for now
RDF::Reader.for(:rdfxml).new(rdf) do |reader|
assert reader.statements.count > 0
assert_equal RDF::URI.new("http://localhost:3000/data_files/#{df.id}"), reader.statements.first.subject
# just checks it is valid and contains some statements for now
graph = RDF::Graph.new do |graph|
RDF::Reader.for(:ttl).new(rdf) {|reader| graph << reader}
end
assert graph.statements.count > 0
assert_equal RDF::URI.new("http://localhost:3000/data_files/#{df.id}"), graph.statements.first.subject
end

test 'cache_remote_content' do
Expand Down

0 comments on commit dcb8b90

Please sign in to comment.