Improve verbose output
This commit is contained in:
1 parent
519178cb41
commit
44a5b20e14
3 files changed
+14
-13
No files matched your search
@@ -18,7 +18,7 @@ module Producer::Core
|
||||
let(:task) { Task.new(task_name, [action]) }
|
||||
|
||||
it 'logs task info' do
|
||||
expect(env).to receive(:log).with /\ATask: #{task_name}/
|
||||
expect(env).to receive(:log).with /\ATask: `#{task_name}'/
|
||||
worker.process_task task
|
||||
end
|
||||
|
||||
@@ -28,8 +28,8 @@ module Producer::Core
|
||||
worker.process_task task
|
||||
end
|
||||
|
||||
it 'logs condition info' do
|
||||
expect(env).to receive(:log).with(' condition: met')
|
||||
it 'logs the task as beeing applied' do
|
||||
expect(env).to receive(:log).with /#{task_name}.+applying\.\.\.\z/
|
||||
worker.process_task task
|
||||
end
|
||||
|
||||
@@ -56,8 +56,8 @@ module Producer::Core
|
||||
worker.process_task task
|
||||
end
|
||||
|
||||
it 'logs condition info' do
|
||||
expect(env).to receive(:log).with(' condition: NOT met')
|
||||
it 'logs the task as beeing skipped' do
|
||||
expect(env).to receive(:log).with /#{task_name}.+skipped\z/
|
||||
worker.process_task task
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user