Skip to content

Commit

Permalink
[wip]
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgriffiniii committed Jul 20, 2022
1 parent 3e758e3 commit 6e62aeb
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions spec/lib/integration/integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,22 @@
end
end

it 'creates direct containers' do
Ldp::Container::Direct.new(ldp_client, '/direct_container').create
obj = ldp_client.find_or_initialize('/direct_container')
expect(obj).not_to be_new
expect(obj).to be_a_kind_of Ldp::Container::Direct
context "when creating a direct container" do
let(:resource_subject) { '/direct_container' }

before do
direct_container = Ldp::Container::Direct.new(ldp_client, resource_subject, client_response, base_path)
direct_container.create
end

it 'can find the persisted direct containers' do
obj = ldp_client.find_or_initialize(resource_subject)
expect(obj).not_to be_new
expect(obj).to be_a_kind_of Ldp::Container
expect(obj).to be_a_kind_of Ldp::Container::Basic
# This is not working properly with fcrepo
# expect(obj).to be_a_kind_of Ldp::Container::Direct
end
end

it 'creates indirect containers' do
Expand Down

0 comments on commit 6e62aeb

Please sign in to comment.