Created
April 8, 2011 09:33
-
-
Save RaMin0/909554 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
Could not load SystemTimer >= v1.2.0. Falling back to timeout.rb. SystemTimer is STRONGLY recommended for timeouts in Ruby 1.8.7. See http://ph7spot.com/blog/system-timer-1-2-release for details. | |
...........F..FFFFFF..FFFF............... | |
Failures: | |
1) Mebla searching should search and return the only relevant result | |
Failure/Error: results.count.should == 1 | |
wrong number of arguments (0 for 1) | |
# ./spec/mebla/searching_spec.rb:13:in `size' | |
# ./spec/mebla/searching_spec.rb:13:in `count' | |
# ./spec/mebla/searching_spec.rb:13 | |
2) Mebla searching documents with arrays should search within arrays | |
Failure/Error: results.count.should == 1 | |
wrong number of arguments (0 for 1) | |
# ./spec/mebla/searching_spec.rb:37:in `size' | |
# ./spec/mebla/searching_spec.rb:37:in `count' | |
# ./spec/mebla/searching_spec.rb:37 | |
3) Mebla searching documents with indexed methods should search within indexed methods | |
Failure/Error: results.count.should == 1 | |
wrong number of arguments (0 for 1) | |
# ./spec/mebla/searching_spec.rb:50:in `size' | |
# ./spec/mebla/searching_spec.rb:50:in `count' | |
# ./spec/mebla/searching_spec.rb:50 | |
4) Mebla searching documents with indexed relation fields should search within indexed fields from the relations | |
Failure/Error: results.count.should == 1 | |
wrong number of arguments (0 for 1) | |
# ./spec/mebla/searching_spec.rb:65:in `size' | |
# ./spec/mebla/searching_spec.rb:65:in `count' | |
# ./spec/mebla/searching_spec.rb:65 | |
5) Mebla searching multiple types should search and return all results of all class types | |
Failure/Error: results.count.should == 2 | |
wrong number of arguments (0 for 1) | |
# ./spec/mebla/searching_spec.rb:77:in `size' | |
# ./spec/mebla/searching_spec.rb:77:in `count' | |
# ./spec/mebla/searching_spec.rb:77 | |
6) Mebla searching multiple types should search and return only results from the searched class type | |
Failure/Error: results.count.should == 1 | |
wrong number of arguments (0 for 1) | |
# ./spec/mebla/searching_spec.rb:84:in `size' | |
# ./spec/mebla/searching_spec.rb:84:in `count' | |
# ./spec/mebla/searching_spec.rb:84 | |
7) Mebla searching embedded documents should search and return the only relevant result | |
Failure/Error: results.count.should == 1 | |
wrong number of arguments (0 for 1) | |
# ./spec/mebla/searching_spec.rb:98:in `size' | |
# ./spec/mebla/searching_spec.rb:98:in `count' | |
# ./spec/mebla/searching_spec.rb:98 | |
8) Mebla searching with options should sort ascending according to the criteria defined | |
Failure/Error: Mebla.search("Testing index").asc(:value).first.class.should == MongoidAlpha | |
expected: MongoidAlpha, | |
got: MongoidGamma (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-MongoidAlpha | |
+MongoidGamma | |
# ./spec/mebla/searching_spec.rb:119 | |
9) Mebla searching with options should search and only return results matching the term defined | |
Failure/Error: Mebla.search.term(:name, "index").count.should == 2 | |
wrong number of arguments (0 for 1) | |
# ./spec/mebla/searching_spec.rb:123:in `size' | |
# ./spec/mebla/searching_spec.rb:123:in `count' | |
# ./spec/mebla/searching_spec.rb:123 | |
10) Mebla searching with options should search and only return results matching the terms defined | |
Failure/Error: Mebla.search.terms(:name, ["index", "map"]).count.should == 3 | |
wrong number of arguments (0 for 1) | |
# ./spec/mebla/searching_spec.rb:127:in `size' | |
# ./spec/mebla/searching_spec.rb:127:in `count' | |
# ./spec/mebla/searching_spec.rb:127 | |
11) Mebla searching with options should search and filter results according to the filters defined | |
Failure/Error: Mebla.search.terms(:name, ["index", "map"]).only(:value => [1]).count.should == 1 | |
wrong number of arguments (0 for 1) | |
# ./spec/mebla/searching_spec.rb:131:in `size' | |
# ./spec/mebla/searching_spec.rb:131:in `count' | |
# ./spec/mebla/searching_spec.rb:131 | |
Finished in 9.79 seconds | |
41 examples, 11 failures |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment