Skip to content

Commit

Permalink
Don't require a specific error message in shared specs.
Browse files Browse the repository at this point in the history
Closes #849
  • Loading branch information
tpendragon committed Oct 15, 2021
1 parent 3e2bbac commit 8c27375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/valkyrie/specs/shared_specs/persister.rb
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ class MyLockingResource < Valkyrie::Resource
# update the resource in the datastore to make its token stale
persister.save(resource: resource)

expect { persister.save(resource: resource) }.to raise_error(Valkyrie::Persistence::StaleObjectError, "The object #{resource.id} has been updated by another process.")
expect { persister.save(resource: resource) }.to raise_error(Valkyrie::Persistence::StaleObjectError)
end
end

Expand Down Expand Up @@ -443,7 +443,7 @@ class MyLockingResource < Valkyrie::Resource
persister.save(resource: resource2)

expect { persister.save_all(resources: [resource1, resource2, resource3]) }
.to raise_error(Valkyrie::Persistence::StaleObjectError, "One or more resources have been updated by another process.")
.to raise_error(Valkyrie::Persistence::StaleObjectError)
end
end
end
Expand Down

0 comments on commit 8c27375

Please sign in to comment.