Sha256: 7a4d5e2bd6034dcf10a52a94ffb72f14dbce60221021a0bb5afd7165bb925e72

Contents?: true

Size: 633 Bytes

Versions: 31

Compression:

Stored size: 633 Bytes

Contents

require 'spec_helper'

describe 'curation_concerns/base/show_actions' do
  let(:model) { double('model', persisted?: true, to_param: '123', model_name: GenericWork.model_name) }
  let(:presenter) { double("presenter", human_readable_type: 'Image', id: '123', to_model: model) }
  before do
    assign(:presenter, presenter)
    render 'curation_concerns/base/show_actions.html.erb', collector: collector, editor: editor
  end

  context "as a collector" do
    let(:editor) { true }
    let(:collector) { true }
    it "shows the add to collection link" do
      expect(rendered).to have_link 'Add to a Collection'
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
curation_concerns-1.0.0.beta6 spec/views/curation_concerns/base/_show_actions.html.erb_spec.rb
curation_concerns-1.0.0.beta5 spec/views/curation_concerns/base/_show_actions.html.erb_spec.rb
curation_concerns-1.0.0.beta4 spec/views/curation_concerns/base/_show_actions.html.erb_spec.rb
curation_concerns-1.0.0.beta3 spec/views/curation_concerns/base/_show_actions.html.erb_spec.rb
curation_concerns-1.0.0.beta2 spec/views/curation_concerns/base/_show_actions.html.erb_spec.rb
curation_concerns-1.0.0.beta1 spec/views/curation_concerns/base/_show_actions.html.erb_spec.rb
curation_concerns-0.14.0 spec/views/curation_concerns/base/_show_actions.html.erb_spec.rb
curation_concerns-0.14.0.pre4 spec/views/curation_concerns/base/_show_actions.html.erb_spec.rb
curation_concerns-0.14.0.pre3 spec/views/curation_concerns/base/_show_actions.html.erb_spec.rb
curation_concerns-0.14.0.pre2 spec/views/curation_concerns/base/_show_actions.html.erb_spec.rb
curation_concerns-0.14.0.pre1 spec/views/curation_concerns/base/_show_actions.html.erb_spec.rb
curation_concerns-0.13.1 spec/views/curation_concerns/base/_show_actions.html.erb_spec.rb
curation_concerns-0.13.0 spec/views/curation_concerns/base/_show_actions.html.erb_spec.rb
curation_concerns-0.12.0 spec/views/curation_concerns/base/_show_actions.html.erb_spec.rb
curation_concerns-0.12.0.pre9 spec/views/curation_concerns/base/_show_actions.html.erb_spec.rb
curation_concerns-0.12.0.pre8 spec/views/curation_concerns/base/_show_actions.html.erb_spec.rb
curation_concerns-0.12.0.pre7 spec/views/curation_concerns/base/_show_actions.html.erb_spec.rb
curation_concerns-0.12.0.pre6 spec/views/curation_concerns/base/_show_actions.html.erb_spec.rb
curation_concerns-0.12.0.pre5 spec/views/curation_concerns/base/_show_actions.html.erb_spec.rb
curation_concerns-0.12.0.pre4 spec/views/curation_concerns/base/_show_actions.html.erb_spec.rb