Skip to content

Commit 259089f

Browse files
mjankowskibbatsov
authored andcommitted
Capture output in rake helper spec
1 parent a7719e0 commit 259089f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/chewy/rake_helper_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,9 @@
465465
Rake::Task.define_task(:environment)
466466
end
467467
it 'does not raise error' do
468-
expect { task.invoke }.to_not raise_error
468+
expect do
469+
expect { task.invoke }.to_not raise_error
470+
end.to output(match('Cleaned up 2 journal entries')).to_stdout
469471
end
470472
end
471473
end

0 commit comments

Comments
 (0)