sul-dlss/sw_index_tests — pull request #62 by lmcglohon (2014-11-03 16:41:17+00:00)
Title: Fixed failures by increasing have_at_most values

1) advanced search pub info subject 'soviet union and historiography' and pub info '1910-1911 pub info 2011
Failure/Error: resp.should have_at_most(127000).results
expected at most 127000 results, got 127120
# ./spec/advanced_search_spec.rb:345:in `block (4 levels) in '

2) Japanese Title searches lantern behaves like best matches first finds "10181601" in first 1 results
Failure/Error: resp.should include(id_list).in_first(num).results
expected response to include document "10181601" in first 1 results: {"responseHeader"=>{"status"=>0, "QTime"=>2, "params"=>{"mm"=>"3<86%", "facet"=>"false", "fl"=>"id", "q"=>"{!qf=$qf_title_cjk pf=$pf_title_cjk pf3=$pf3_title_cjk pf2=$pf2_title_cjk}ちょうちん", "testing"=>"sw_index_test", "qs"=>"0", "wt"=>"ruby"}}, "response"=>{"numFound"=>5, "start"=>0, "docs"=>[{"id"=>"10661327"}, {"id"=>"10181601"}, {"id"=>"10648707"}, {"id"=>"10181430"}, {"id"=>"10216593"}]}}
Diff:
@@ -1,2 +1,22 @@
-["10181601"]
+{"responseHeader"=>
+ {"status"=>0,
+ "QTime"=>2,
+ "params"=>
+ {"mm"=>"3<86%",
+ "facet"=>"false",
+ "fl"=>"id",
+ "q"=>
+ "{!qf=$qf_title_cjk pf=$pf_title_cjk pf3=$pf3_title_cjk pf2=$pf2_title_cjk}ちょうちん",
+ "testing"=>"sw_index_test",
+ "qs"=>"0",
+ "wt"=>"ruby"}},
+ "response"=>
+ {"numFound"=>5,
+ "start"=>0,
+ "docs"=>
+ [{"id"=>"10661327"},
+ {"id"=>"10181601"},
+ {"id"=>"10648707"},
+ {"id"=>"10181430"},
+ {"id"=>"10216593"}]}}
Shared Example Group: "best matches first" called from ./spec/cjk/japanese_title_spec.rb:77
# ./spec/support/shared_examples_cjk.rb:30:in `block (2 levels) in '

3) Japanese Title searches lantern shop behaves like expected result size title search has between 1 and 2 results
Failure/Error: resp.should have_at_most(max).results
expected at most 2 results, got 3
Shared Example Group: "expected result size" called from ./spec/cjk/japanese_title_spec.rb:81
# ./spec/support/shared_examples_cjk.rb:8:in `block (2 levels) in '

1) advanced search pub info subject 'soviet union and historiography' and pub info '1910-1911 pub info 2010
Failure/Error: resp.should have_at_most(137650).results
expected at most 137650 results, got 137663
# ./spec/advanced_search_spec.rb:340:in `block (4 levels) in '

2) advanced search pub info subject 'soviet union and historiography' and pub info '1910-1911 pub info 2011
Failure/Error: resp.should have_at_most(127200).results
expected at most 127200 results, got 127400
# ./spec/advanced_search_spec.rb:345:in `block (4 levels) in '

3) Author-Title Search Beethoven violin concerto
Failure/Error: resp.should have_at_most(185).documents
expected at most 185 documents, got 190
# ./spec/author_title_spec.rb:19:in `block (2 levels) in '

4) Tests for synonyms.txt used by Solr SynonymFilterFactory musical keys sharp keys c# minor
Failure/Error: resp.should have_at_most(1900).documents
expected at most 1900 documents, got 1901
# ./spec/synonym_spec.rb:180:in `block (4 levels) in '

5) Tests for synonyms.txt used by Solr SynonymFilterFactory musical keys sharp keys should not reduce perceived precision for reasonable non-musical searches with x sharp (space) B sharp - title
Failure/Error: resp.should have_at_most(725).documents
expected at most 725 documents, got 731
# ./spec/synonym_spec.rb:271:in `block (5 levels) in '