Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding optimistic locking to the memory persister
fixes #455 Co-authored-by: Mike Tribone <mtribone@psu.edu> Co-authored-by: Anna Headley <anna.headley@gmail.com> Co-authored-by: Adam Wead <amsterdamos@gmail.com>
- Loading branch information
1 parent
77c77c9
commit 4695f70
Showing
3 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
# frozen_string_literal: true | ||
require 'spec_helper' | ||
require 'valkyrie/specs/shared_specs' | ||
require 'valkyrie/specs/shared_specs/locking_persister' | ||
|
||
RSpec.describe Valkyrie::Persistence::Memory::Persister do | ||
let(:adapter) { Valkyrie::Persistence::Memory::MetadataAdapter.new } | ||
let(:query_service) { adapter.query_service } | ||
let(:persister) { adapter.persister } | ||
it_behaves_like "a Valkyrie::Persister" | ||
it_behaves_like "a Valkyrie locking persister" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# frozen_string_literal: true | ||
require 'spec_helper' | ||
require 'valkyrie/specs/shared_specs' | ||
require 'valkyrie/specs/shared_specs/locking_query' | ||
|
||
RSpec.describe Valkyrie::Persistence::Memory::QueryService do | ||
let(:adapter) { Valkyrie::Persistence::Memory::MetadataAdapter.new } | ||
it_behaves_like "a Valkyrie query provider" | ||
it_behaves_like "a Valkyrie locking query provider" | ||
end |