spec/models/description_spec.rb in link_thumbnailer-3.3.0 vs spec/models/description_spec.rb in link_thumbnailer-3.3.1
- old
+ new
@@ -6,10 +6,10 @@
let(:grader) { double(call: 0) }
let(:node) { double(text: 'bar') }
let(:instance) { described_class.new(node, text) }
before do
- ::LinkThumbnailer::Grader.should_receive(:new).at_least(1).and_return(grader)
+ expect(LinkThumbnailer::Grader).to receive(:new).at_least(1).times.and_return(grader)
end
describe '#to_s' do
let(:action) { instance.to_s }