Sha256: 837b387398480a65f212b80c3fc08fce5eb2b6f1fb8fbafa6e4bc49a66572a65

Contents?: true

Size: 619 Bytes

Versions: 12

Compression:

Stored size: 619 Bytes

Contents

RSpec.describe 'records/edit_fields/_based_near.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/based_near", f: f, key: 'based_near' %>
      <% 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/geonames"][data-autocomplete="based_near"]')
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
sufia-7.4.1 spec/views/records/edit_fields/_based_near.html.erb_spec.rb
sufia-7.4.0 spec/views/records/edit_fields/_based_near.html.erb_spec.rb
sufia-7.3.1 spec/views/records/edit_fields/_based_near.html.erb_spec.rb
sufia-7.3.0 spec/views/records/edit_fields/_based_near.html.erb_spec.rb
sufia-7.3.0.rc3 spec/views/records/edit_fields/_based_near.html.erb_spec.rb
sufia-7.3.0.rc2 spec/views/records/edit_fields/_based_near.html.erb_spec.rb
sufia-7.3.0.rc1 spec/views/records/edit_fields/_based_near.html.erb_spec.rb
sufia-7.2.0 spec/views/records/edit_fields/_based_near.html.erb_spec.rb
sufia-7.1.0 spec/views/records/edit_fields/_based_near.html.erb_spec.rb
sufia-7.0.0 spec/views/records/edit_fields/_based_near.html.erb_spec.rb
sufia-7.0.0.rc2 spec/views/records/edit_fields/_based_near.html.erb_spec.rb
sufia-7.0.0.rc1 spec/views/records/edit_fields/_based_near.html.erb_spec.rb