mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
DEV: Apply new Rubocop linting on services
This commit is contained in:

committed by
Loïc Guitaut

parent
a52b83333e
commit
cf2b4d9934
@ -11,15 +11,18 @@ RSpec.describe Service::StepsInspector do
|
||||
|
||||
model :model
|
||||
policy :policy
|
||||
|
||||
params do
|
||||
attribute :parameter
|
||||
|
||||
validates :parameter, presence: true
|
||||
end
|
||||
|
||||
transaction do
|
||||
step :in_transaction_step_1
|
||||
step :in_transaction_step_2
|
||||
end
|
||||
|
||||
try { step :might_raise }
|
||||
step :final_step
|
||||
end
|
||||
|
Reference in New Issue
Block a user