Sha256: fa84ab64458cb7f44f886f8051940eae0b8208bf7c873081e5eed8cb30f218ae
Contents?: true
Size: 721 Bytes
Versions: 3
Compression:
Stored size: 721 Bytes
Contents
describe 'batch_edits/edit.html.erb' do let(:generic_work) { stub_model(GenericWork, id: nil, depositor: 'bob', rights: ['']) } let(:form) { double } before do allow(controller).to receive(:current_user).and_return(stub_model(User)) allow(form).to receive(:model).and_return(generic_work) allow(form).to receive(:names).and_return(['title 1', 'title 2']) allow(form).to receive(:terms).and_return([:description, :rights]) assign :form, form view.lookup_context.view_paths.push "#{CurationConcerns::Engine.root}/app/views/curation_concerns/base" render end it "draws help for description" do expect(rendered).to have_selector ".generic_work_description p.help-block" end end
Version data entries
3 entries across 3 versions & 1 rubygems