sul-dlss/sw_index_tests — pull request #67 by lmcglohon (2014-11-20 15:44:11+00:00)
Title: Fixed failures by increasing have_at_most value and increasing in the first value

1) advanced search facets format video, location green, language english before topics selected
Failure/Error: resp.should have_at_most(35600).results
expected at most 35600 results, got 35614
# ./spec/advanced_search_spec.rb:403:in `block (4 levels) in '

2) Non-Latin, Non-CJK scripts Hebrew (עברית)
Failure/Error: resp.should include("3370152").in_first(3)
expected response to include document "3370152" in first 3 results: {"responseHeader"=>{"status"=>0, "QTime"=>291, "params"=>{"facet"=>"false", "fl"=>"id", "q"=>"עברית", "testing"=>"sw_index_test", "wt"=>"ruby"}}, "response"=>{"numFound"=>888, "start"=>0, "docs"=>[{"id"=>"10682079"}, {"id"=>"10502274"}, {"id"=>"6754068"}, {"id"=>"3370152"}, {"id"=>"4793973"}, {"id"=>"3904077"}, {"id"=>"2456185"}, {"id"=>"3248149"}, {"id"=>"2758721"}, {"id"=>"7613321"}, {"id"=>"3745981"}, {"id"=>"3755907"}, {"id"=>"3442915"}, {"id"=>"4107770"}, {"id"=>"5049348"}, {"id"=>"4690639"}, {"id"=>"3074248"}, {"id"=>"3755661"}, {"id"=>"8725538"}, {"id"=>"6974436"}]}}
Diff:
@@ -1,2 +1,34 @@
-["3370152"]
+{"responseHeader"=>
+ {"status"=>0,
+ "QTime"=>291,
+ "params"=>
+ {"facet"=>"false",
+ "fl"=>"id",
+ "q"=>"עברית",
+ "testing"=>"sw_index_test",
+ "wt"=>"ruby"}},
+ "response"=>
+ {"numFound"=>888,
+ "start"=>0,
+ "docs"=>
+ [{"id"=>"10682079"},
+ {"id"=>"10502274"},
+ {"id"=>"6754068"},
+ {"id"=>"3370152"},
+ {"id"=>"4793973"},
+ {"id"=>"3904077"},
+ {"id"=>"2456185"},
+ {"id"=>"3248149"},
+ {"id"=>"2758721"},
+ {"id"=>"7613321"},
+ {"id"=>"3745981"},
+ {"id"=>"3755907"},
+ {"id"=>"3442915"},
+ {"id"=>"4107770"},
+ {"id"=>"5049348"},
+ {"id"=>"4690639"},
+ {"id"=>"3074248"},
+ {"id"=>"3755661"},
+ {"id"=>"8725538"},
+ {"id"=>"6974436"}]}}
# ./spec/vern_scripts_spec.rb:11:in `block (2 levels) in '