Created
September 27, 2012 03:39
-
-
Save ryw/3792038 to your computer and use it in GitHub Desktop.
with Date.current rather than Date.today
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
..F.....FF.. | |
Failures: | |
1) Cohort::Query should calculate subfunnels | |
Failure/Error: c["Null"]["active_weeks"].should == ["week_0", "week_1"] | |
expected: ["week_0", "week_1"] | |
got: ["week_-1", "week_0"] (using ==) | |
# ./spec/models/cohort_query_spec.rb:57:in `block (2 levels) in <top (required)>' | |
2) Cohort::Query should return retention | |
Failure/Error: cohort.events["retained"]["people"].keys.sort.should == [person("joe").id.to_s, person("tom").id.to_s].sort | |
expected: ["5063ca5529e64400b500015d", "5063ca5529e64400b5000164"] | |
got: [] (using ==) | |
# ./spec/models/cohort_query_spec.rb:96:in `block (2 levels) in <top (required)>' | |
3) Cohort::Query should return failed retention | |
Failure/Error: cohort.events["retained_failed"]["people"].keys.should == [person("mike").id.to_s] | |
expected: ["5063ca5529e64400b500017d"] | |
got: ["5063ca5529e64400b500017d", "5063ca5529e64400b5000183", "5063ca5529e64400b500018a"] (using ==) | |
# ./spec/models/cohort_query_spec.rb:101:in `block (2 levels) in <top (required)>' | |
Finished in 6.54 seconds | |
13 examples, 3 failures | |
Failed examples: | |
rspec ./spec/models/cohort_query_spec.rb:53 # Cohort::Query should calculate subfunnels | |
rspec ./spec/models/cohort_query_spec.rb:94 # Cohort::Query should return retention | |
rspec ./spec/models/cohort_query_spec.rb:99 # Cohort::Query should return failed retention |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment