Sha256: 2b1cce10addb5fe8ecb11447f247ecbe15f4fea7bd21bb9137bc86e86d2be8f1
Contents?: true
Size: 733 Bytes
Versions: 1
Compression:
Stored size: 733 Bytes
Contents
describe 'batch_edits/edit.html.erb', type: :view 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sufia-7.0.0.beta4 | spec/views/batch_edits/edit.html.erb_spec.rb |