Created
February 6, 2013 17:20
-
-
Save marcomoura/4724167 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorter::DiligenceSearch testing the entire stack should return all search results sorted | |
Failure/Error: sorter.sort.should == [SearchIndex.first] | |
expected: [#<SearchIndex id: 60, city_hall_id: nil, institution_id: nil, searchable_id: 51, searchable_type: "City", name: "city", model_weight: 1, rank_a: "sao paulo", rank_b: "sp", rank_c: nil, created_at: "2013-02-06 16:53:17", updated_at: "2013-02-06 16:53:17", active: nil, branch_id: nil>] | |
got: [#<SearchIndex id: 72, city_hall_id: 1, institution_id: 1, searchable_id: 1, searchable_type: "Diligence", name: "diligencia", model_weight: 1, rank_a: "1 00000001 guia g 00000001 10/2011 nao recolhimento...", rank_b: "filial centro 74215432000318 74.215.432/0003-18 000...", rank_c: "problema de pagamento de guia", created_at: "2013-02-06 16:54:02", updated_at: "2013-02-06 16:54:02", active: true, branch_id: 1>] (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-[#<SearchIndex id: 60, city_hall_id: nil, institution_id: nil, searchable_id: 51, searchable_type: "City", name: "city", model_weight: 1, rank_a: "sao paulo", rank_b: "sp", rank_c: nil, created_at: "2013-02-06 16:53:17", updated_at: "2013-02-06 16:53:17", active: nil, branch_id: nil>] | |
+[#<SearchIndex id: 72, city_hall_id: 1, institution_id: 1, searchable_id: 1, searchable_type: "Diligence", name: "diligencia", model_weight: 1, rank_a: "1 00000001 guia g 00000001 10/2011 nao recolhimento...", rank_b: "filial centro 74215432000318 74.215.432/0003-18 000...", rank_c: "problema de pagamento de guia", created_at: "2013-02-06 16:54:02", updated_at: "2013-02-06 16:54:02", active: true, branch_id: 1>] | |
# ./spec/services/sorter/diligence_search_spec.rb:23:in `block (3 levels) in <top (required)>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment