test/plugins/transaction_test.rb in rocketjob-3.3.1 vs test/plugins/transaction_test.rb in rocketjob-3.3.2
- old
+ new
@@ -51,12 +51,12 @@
@job.destroy if @job && !@job.new_record?
end
describe '#rocket_job_transaction' do
it 'is registered' do
- assert CommitTransactionJob.send(:get_callbacks, :perform).find {|c| c.filter == :rocket_job_transaction}
- assert RollbackTransactionJob.send(:get_callbacks, :perform).find {|c| c.filter == :rocket_job_transaction}
- refute RocketJob::Job.send(:get_callbacks, :perform).find {|c| c.filter == :rocket_job_transaction}
+ assert CommitTransactionJob.send(:get_callbacks, :perform).find { |c| c.filter == :rocket_job_transaction }
+ assert RollbackTransactionJob.send(:get_callbacks, :perform).find { |c| c.filter == :rocket_job_transaction }
+ refute RocketJob::Job.send(:get_callbacks, :perform).find { |c| c.filter == :rocket_job_transaction }
end
end
describe '#perform' do
it 'commits on success' do