spec/unit/wgif/download_bar_spec.rb in wgif-0.5.1 vs spec/unit/wgif/download_bar_spec.rb in wgif-0.5.2
- old
+ new
@@ -7,10 +7,10 @@
let(:download_bar) { described_class.new }
let(:mock_progress_bar) { double(ProgressBar) }
before do
- ProgressBar.stub(:create).and_return(mock_progress_bar)
+ allow(ProgressBar).to receive(:create).and_return(mock_progress_bar)
end
it 'creates a ProgressBar with the correct format, smoothing, and size' do
progress_bar_params = {
format: '==> %p%% |%B|',