Sha256: e7592a1b7295c4aabdcfb848a28c7a2602f1bd5fc1e727de5608a84604b62b17

Contents?: true

Size: 573 Bytes

Versions: 6

Compression:

Stored size: 573 Bytes

Contents

require 'spec_helper'

describe 'curation_concern/base/_contributors_attribute.html.erb' do
  let(:curation_concern) { double(contributors: [contributor]) }
  let(:contributor) { double(name: 'My Name', to_param: '123') }

  before do
    render partial: 'contributors_attribute', locals: { curation_concern: curation_concern }
  end

  it 'lists all the collections the work is added to' do
    expect(rendered).to have_tag(".tabular") do
      with_tag(".attribute.contributors") do
        with_tag("a[href$='/people/123']", text: 'My Name')
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
curate-0.6.6 spec/views/curation_concern/base/_contributors_attribute.html.erb_spec.rb
curate-0.6.5 spec/views/curation_concern/base/_contributors_attribute.html.erb_spec.rb
curate-0.6.4 spec/views/curation_concern/base/_contributors_attribute.html.erb_spec.rb
curate-0.6.3 spec/views/curation_concern/base/_contributors_attribute.html.erb_spec.rb
curate-0.6.1 spec/views/curation_concern/base/_contributors_attribute.html.erb_spec.rb
curate-0.6.0 spec/views/curation_concern/base/_contributors_attribute.html.erb_spec.rb