Sha256: 2b60989175e2aad9da6e20c8bfc8c391f5dde444ef35b23c9e6081502f7aee0a
Contents?: true
Size: 839 Bytes
Versions: 2
Compression:
Stored size: 839 Bytes
Contents
describe 'collections/_show_document_list_menu.html.erb', type: :view do context 'when user logged in displaying the collections of current user' do let(:user) { create :user } let(:work) { build(:public_work, user: user, id: "1234") } let(:collection) { build(:work, user: user) } before { collection.members << work } it "displays the action list in individual work drop down" do render(partial: 'collections/show_document_list_menu.html.erb', locals: { id: work.id, current_user: user }) expect(rendered).to have_content 'Select an action' expect(rendered).not_to have_content 'Single-Use Link to File' expect(rendered).to have_content 'Edit' expect(rendered).not_to have_content 'Download File' expect(rendered).to have_content 'Highlight Work on Profile' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sufia-7.0.0.beta2 | spec/views/collections/_show_document_list_menu.html.erb_spec.rb |
sufia-7.0.0.beta1 | spec/views/collections/_show_document_list_menu.html.erb_spec.rb |