Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fedora 4.5.1-RC compatibility #1053

Merged
merged 1 commit into from
Apr 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions spec/integration/versionable_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ class MockAFBase < ActiveFedora::Base
@original_size = subject.size
end

it "sets model_type to versionable" do
expect(subject.model_type).to include RDF::URI.new('http://www.jcp.org/jcr/mix/1.0versionable')
it "links to versions endpoint" do
expect(subject.metadata.ldp_source.graph.query(predicate: ::RDF::Vocab::Fcrepo4.hasVersions).objects).to_not be_empty
end

it "has one version" do
Expand Down Expand Up @@ -305,8 +305,8 @@ class MockAFBase < ActiveFedora::Base
@original_size = subject.size
end

it "sets model_type to versionable" do
expect(subject.model_type).to include RDF::URI.new('http://www.jcp.org/jcr/mix/1.0versionable')
it "links to versions endpoint" do
expect(subject.metadata.ldp_source.graph.query(predicate: ::RDF::Vocab::Fcrepo4.hasVersions).objects).to_not be_empty
end

it "has one version" do
Expand Down Expand Up @@ -427,8 +427,8 @@ class MockAFBase < ActiveFedora::Base
subject.create_version
end

it "sets model_type to versionable" do
expect(subject.model_type).to include RDF::URI.new('http://www.jcp.org/jcr/mix/1.0versionable')
it "links to versions endpoint" do
expect(subject.metadata.ldp_source.graph.query(predicate: ::RDF::Vocab::Fcrepo4.hasVersions).objects).to_not be_empty
end

it "has one version" do
Expand Down