spec/rake/funnel/integration/progress_report_spec.rb in rake-funnel-0.14.0.pre vs spec/rake/funnel/integration/progress_report_spec.rb in rake-funnel-0.15.0.pre
- old
+ new
@@ -27,19 +27,19 @@
Task[:task].invoke
}
context 'not on TeamCity' do
- it 'should write task name in square brackets' do
- expect($stdout).to have_received(:puts).with("\n[task]")
+ it 'should write colored task name in square brackets' do
+ expect($stdout).to have_received(:puts).with("\n[task]".bold.cyan)
end
end
context 'on TeamCity' do
let(:teamcity_running?) { true }
- it 'should not write task name in square brackets since it would clutter the output' do
- expect($stdout).to_not have_received(:puts).with("\n[task]")
+ it 'should not write task name since it would clutter the output' do
+ expect($stdout).to_not have_received(:puts).with(/task/)
end
end
end
context 'when progess report was disabled' do