spec/unit/wgif/gif_maker_spec.rb in wgif-0.5.1 vs spec/unit/wgif/gif_maker_spec.rb in wgif-0.5.2

- old
+ new

@@ -6,16 +6,16 @@ let(:gif_maker) { described_class.new } let(:image) { double(Magick::Image) } let(:images) { double(Magick::ImageList, each: nil) } before do - Magick::ImageList.stub(:new).and_return(images) + allow(Magick::ImageList).to receive(:new).and_return(images) end it 'converts a directory of frames to a gif' do - images.should_receive(:coalesce) - images.should_receive(:optimize_layers) - images.should_receive(:write).with('bjork.gif') + expect(images).to receive(:coalesce) + expect(images).to receive(:optimize_layers) + expect(images).to receive(:write).with('bjork.gif') gif_maker.make_gif([], 'bjork.gif', '500') end it 'resizes the image' do expect(image).to receive(:change_geometry).with('500')