spec/graders/base_spec.rb in link_thumbnailer-2.6.1 vs spec/graders/base_spec.rb in link_thumbnailer-3.0.0
- old
+ new
@@ -1,12 +1,12 @@
require 'spec_helper'
describe LinkThumbnailer::Graders::Base do
- let(:description) { double('description', node: node) }
+ let(:description) { double('description', text: 'foo', node: node) }
let(:node) { double('node', text: 'foo') }
let(:instance) { described_class.new(description) }
it { expect(instance.send(:node)).to eq(description.node) }
- it { expect(instance.send(:text)).to eq(description.node.text) }
+ it { expect(instance.send(:text)).to eq(description.text) }
end