Sha256: ca8e1111c8bc2504c99e80acf56b05d8b9bfcbf9c53931efbdbfce1ff9587100
Contents?: true
Size: 613 Bytes
Versions: 12
Compression:
Stored size: 613 Bytes
Contents
RSpec.describe 'records/edit_fields/_subject.html.erb', type: :view do let(:work) { GenericWork.new } let(:form) { Sufia::Forms::WorkForm.new(work, nil) } let(:form_template) do %( <%= simple_form_for [main_app, @form] do |f| %> <%= render "records/edit_fields/subject", f: f, key: 'subject' %> <% end %> ) end before do assign(:form, form) render inline: form_template end it 'has url for autocomplete service' do expect(rendered).to have_selector('input[data-autocomplete-url="/authorities/search/local/subjects"][data-autocomplete="subject"]') end end
Version data entries
12 entries across 12 versions & 1 rubygems