Sha256: d3efb1c5b96700978ef05bdc6b659a6e38b78084bc84b17ac41131dadcbce906

Contents?: true

Size: 507 Bytes

Versions: 16

Compression:

Stored size: 507 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'GET /catalog/suggest' do
  it 'returns suggestions' do
    get '/catalog/suggest?q=new'
    expect(response.body).to eq <<-RESULT
  <li role="option"><span>new jersey</span></li>
  <li role="option"><span>new jersey bridgeton biography</span></li>
  <li role="option"><span>new jersey bridgeton history</span></li>
  <li role="option"><span>new york</span></li>
  <li role="option"><span>nuwākshūṭ</span></li>
    RESULT
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/spec/requests/load_suggestions_spec.rb
blacklight-8.3.0 spec/requests/load_suggestions_spec.rb
blacklight-8.2.2 spec/requests/load_suggestions_spec.rb
blacklight-8.2.1 spec/requests/load_suggestions_spec.rb
blacklight-8.2.0 spec/requests/load_suggestions_spec.rb
blacklight-8.1.0 spec/requests/load_suggestions_spec.rb
blacklight-8.0.1 spec/requests/load_suggestions_spec.rb
blacklight-8.0.0 spec/requests/load_suggestions_spec.rb
blacklight-8.0.0.beta8 spec/requests/load_suggestions_spec.rb
blacklight-8.0.0.beta7 spec/requests/load_suggestions_spec.rb
blacklight-8.0.0.beta6 spec/requests/load_suggestions_spec.rb
blacklight-8.0.0.beta5 spec/requests/load_suggestions_spec.rb
blacklight-8.0.0.beta4 spec/requests/load_suggestions_spec.rb
blacklight-8.0.0.beta3 spec/requests/load_suggestions_spec.rb
blacklight-8.0.0.beta2 spec/requests/load_suggestions_spec.rb
blacklight-8.0.0.beta1 spec/requests/load_suggestions_spec.rb