Sha256: f1045df4dd5aeb781a01c432861c697fd20af018856a32504d69a3e8f3ca3524
Contents?: true
Size: 554 Bytes
Versions: 1
Compression:
Stored size: 554 Bytes
Contents
require 'spec_helper' describe Sufia::Export::VersionConverter do let(:file) { create :generic_file, :with_content, id: 'abc123' } let(:graph) { file.content.versions } let(:version) { graph.all.first } let(:created) { version.created } let(:json) { "{\"uri\":\"http://localhost:8983/fedora/rest/test/ab/c1/23/abc123/content/fcr:versions/version1\",\"created\":\"#{created}\",\"label\":\"version1\"}" } subject { described_class.new(graph.all.first.uri, graph).to_json } describe "to_json" do it { is_expected.to eq json } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sufia-6.7.0 | spec/lib/sufia/export/version_converter_spec.rb |