Skip to content

Commit

Permalink
Merge pull request #4981 from sul-dlss/fix-symbol-mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
mjgiarlo authored May 10, 2024
2 parents 7ef8ea6 + f916da9 commit 62e32e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/services/version_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def self.can_open?(druid:, version:, assume_accessioned: false)
# @param [String] description describes the version change
# @param [String] user_name add username to the events datastream
# @param [Boolean] start_accession (true) set to true if you want accessioning to start, false otherwise
# @param [Symbol] user_version (:none) one of :none, :new, :update
def self.close(druid:, version:, description: nil, user_name: nil, start_accession: true, user_version: :none)
# @param [String] user_version (none) one of none, new, update
def self.close(druid:, version:, description: nil, user_name: nil, start_accession: true, user_version: 'none')
new(druid:, version:).close(description:,
user_name:,
start_accession:,
Expand Down
6 changes: 3 additions & 3 deletions spec/services/version_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
allow(workflow_state_service).to receive_messages(accessioning?: false, assembling?: false)
end

context 'when user_version is :none' do
context 'when user_version is none' do
it 'sets description and an event and does not create a user version' do
close
expect(repository_object.reload.last_closed_version).to be_present
Expand All @@ -268,7 +268,7 @@
end
end

context 'when user_version is :new' do
context 'when user_version is new' do
let(:user_version_param) { 'new' }

it 'sets description and an event and creates a new user version' do
Expand All @@ -289,7 +289,7 @@
end
end

context 'when user_version is :update' do
context 'when user_version is update' do
let(:user_version_param) { 'update' }
let(:version) { 3 }

Expand Down

0 comments on commit 62e32e5

Please sign in to comment.