spec/controllers/terms_controller_spec.rb in qa-5.11.0 vs spec/controllers/terms_controller_spec.rb in qa-5.12.0
- old
+ new
@@ -197,10 +197,10 @@
end
end
context "assign_fast" do
before do
- stub_request(:get, "http://fast.oclc.org/searchfast/fastsuggest?query=word&queryIndex=suggest50&queryReturn=suggest50,idroot,auth,type&rows=20&suggest=autoSubject")
+ stub_request(:get, "http://fast.oclc.org/searchfast/fastsuggest?query=word&queryIndex=suggest50&queryReturn=suggest50,idroot,auth,type&rows=20&suggest=autoSubject&sort=usage+desc")
.with(headers: { 'Accept' => 'application/json' })
.to_return(body: webmock_fixture("assign-fast-topical-result.json"), status: 200, headers: {})
end
it "succeeds if authority class is camelcase" do
get :search, params: { q: "word", vocab: "assign_fast", subauthority: "topical" }