Sha256: 2747ff2ec78461e61ae64faae9f2e81e4db96658ee6b1298008888978ab9b069

Contents?: true

Size: 369 Bytes

Versions: 19

Compression:

Stored size: 369 Bytes

Contents

require 'spec_helper'

describe LinkThumbnailer::Graders::Base do

  let(:description) { double('description', 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) }

end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
link_thumbnailer-2.6.1 spec/graders/base_spec.rb
link_thumbnailer-2.6.0 spec/graders/base_spec.rb
link_thumbnailer-2.5.2 spec/graders/base_spec.rb
link_thumbnailer-2.5.1 spec/graders/base_spec.rb
link_thumbnailer-2.5.0 spec/graders/base_spec.rb
link_thumbnailer-2.4.0 spec/graders/base_spec.rb
link_thumbnailer-2.3.2 spec/graders/base_spec.rb
link_thumbnailer-2.3.1 spec/graders/base_spec.rb
link_thumbnailer-2.3.0 spec/graders/base_spec.rb
link_thumbnailer-2.2.3 spec/graders/base_spec.rb
link_thumbnailer-2.2.2 spec/graders/base_spec.rb
link_thumbnailer-2.2.1 spec/graders/base_spec.rb
link_thumbnailer-2.2.0 spec/graders/base_spec.rb
link_thumbnailer-2.1.0 spec/graders/base_spec.rb
link_thumbnailer-2.0.4 spec/graders/base_spec.rb
link_thumbnailer-2.0.3 spec/graders/base_spec.rb
link_thumbnailer-2.0.2 spec/graders/base_spec.rb
link_thumbnailer-2.0.1 spec/graders/base_spec.rb
link_thumbnailer-2.0.0 spec/graders/base_spec.rb