sul-dlss/sw_index_tests — pull request #50 by lmcglohon (2014-09-22 16:35:25+00:00)
Title: Fixed multiple failures

Fixed multiple failures by increasing have_at_most values
Changed format to format_main_ssim in all tests and increased rows value from 25 to 30 for with facet format_main_ssim:Book; default sort should be by pub date desc then title asc
Fixed failure by increasing in_first(num) from 55 to 56

1) Tests for synonyms.txt used by Solr SynonymFilterFactory programming languages C++ C++ programming
Failure/Error: resp.should have_at_most(800).documents
expected at most 800 documents, got 801

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

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

4) Korean spacing Korean economy 한국경제 (no spaces) behaves like good results for 한국경제 behaves like expected result size everything search has between 650 and 750 results
Failure/Error: resp.should have_at_most(max).results
expected at most 750 results, got 754
Shared Example Group: "expected result size" called from ./spec/cjk/korean_spacing_spec.rb:153
# ./spec/support/shared_examples_cjk.rb:8:in `block (2 levels) in '

5) Korean spacing Korean economy at the turning point 전환기 의 한국 경제 (spacing in catalog) behaves like good results for 전환기의 한국경제 behaves like good results for query everything search has between 3 and 530 results
Failure/Error: resp.should have_at_most(max).results
expected at most 530 results, got 532
Shared Example Group: "good results for query" called from ./spec/cjk/korean_spacing_spec.rb:209
# ./spec/support/shared_examples_cjk.rb:8:in `block (2 levels) in '

6) Korean Everything Hangul: social change 사회변동 (no spaces) behaves like best matches first finds ["8802538", "7831769"] in first 55 results
Failure/Error: resp.should include(id_list).in_first(num).results
Shared Example Group: "best matches first" called from ./spec/cjk/korean_everything_spec.rb:58
# ./spec/support/shared_examples_cjk.rb:30:in `block (2 levels) in '

7) sorting results empty query with facet format:Book; default sort should be by pub date desc then title asc
Failure/Error: resp.should include('10343020').before('10343019')
expected response to include document "10343020" before document matching "10343019"
# ./spec/sort_spec.rb:22:in `block (3 levels) in '

@ndushay