Created
September 27, 2012 03:35
-
-
Save ryw/3792029 to your computer and use it in GitHub Desktop.
today is yesterday
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
$ bundle exec rake | |
.F.F.FFFFFF..F................................. | |
Failures: | |
1) Cohort::Query should do basic queries | |
Failure/Error: c["events"]["signed_up"].should == {"count" => 3} | |
expected: {"count"=>3} | |
got: {"people"=>{}, "count"=>0} (using ==) | |
Diff: | |
@@ -1,2 +1,3 @@ | |
-"count" => 3 | |
+"count" => 0, | |
+"people" => {} | |
# ./spec/models/cohort_query_spec.rb:36:in `block (2 levels) in <top (required)>' | |
2) Cohort::Query should calculate subfunnels | |
Failure/Error: c["Null"]["active_weeks"].should == ["week_0", "week_1"] | |
expected: ["week_0", "week_1"] | |
got: nil (using ==) | |
# ./spec/models/cohort_query_spec.rb:57:in `block (2 levels) in <top (required)>' | |
3) Cohort::Query should return people who signed up | |
Failure/Error: cohort.events["signed_up"]["people"].keys.should == [person("joe").id.to_s, person("mike").id.to_s, person("tom").id.to_s].sort | |
NoMethodError: | |
undefined method `events' for nil:NilClass | |
# ./spec/models/cohort_query_spec.rb:76:in `block (2 levels) in <top (required)>' | |
4) Cohort::Query should return people who activated | |
Failure/Error: cohort.events["activated"]["people"].keys.should == [person("joe").id.to_s, person("tom").id.to_s].sort | |
NoMethodError: | |
undefined method `events' for nil:NilClass | |
# ./spec/models/cohort_query_spec.rb:81:in `block (2 levels) in <top (required)>' | |
5) Cohort::Query should return events in between signup and activation | |
Failure/Error: cohort.events["added_1_item"]["people"].keys.should == [person("joe").id.to_s] | |
NoMethodError: | |
undefined method `events' for nil:NilClass | |
# ./spec/models/cohort_query_spec.rb:86:in `block (2 levels) in <top (required)>' | |
6) Cohort::Query should return failed people who didn't complete an intermediary step | |
Failure/Error: cohort.events["added_1_item_failed"]["people"].keys.should == [person("tom").id.to_s, person("mike").id.to_s].sort | |
NoMethodError: | |
undefined method `events' for nil:NilClass | |
# ./spec/models/cohort_query_spec.rb:91:in `block (2 levels) in <top (required)>' | |
7) 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 | |
NoMethodError: | |
undefined method `events' for nil:NilClass | |
# ./spec/models/cohort_query_spec.rb:96:in `block (2 levels) in <top (required)>' | |
8) Cohort::Query should return failed retention | |
Failure/Error: cohort.events["retained_failed"]["people"].keys.should == [person("mike").id.to_s] | |
NoMethodError: | |
undefined method `events' for nil:NilClass | |
# ./spec/models/cohort_query_spec.rb:101:in `block (2 levels) in <top (required)>' | |
9) Cohort::Generic should assign a simple signup event to all time-based default cohorts | |
Failure/Error: Cohort::Daily.all.first.start_date.should === Date.today | |
expected: Wed, 26 Sep 2012 | |
got: Thu, 27 Sep 2012 (using ===) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-Wed, 26 Sep 2012 | |
+Thu, 27 Sep 2012 | |
# ./spec/models/cohort_spec.rb:19:in `block (2 levels) in <top (required)>' | |
Finished in 16.15 seconds | |
47 examples, 9 failures | |
Failed examples: | |
rspec ./spec/models/cohort_query_spec.rb:32 # Cohort::Query should do basic queries | |
rspec ./spec/models/cohort_query_spec.rb:53 # Cohort::Query should calculate subfunnels | |
rspec ./spec/models/cohort_query_spec.rb:74 # Cohort::Query should return people who signed up | |
rspec ./spec/models/cohort_query_spec.rb:79 # Cohort::Query should return people who activated | |
rspec ./spec/models/cohort_query_spec.rb:84 # Cohort::Query should return events in between signup and activation | |
rspec ./spec/models/cohort_query_spec.rb:89 # Cohort::Query should return failed people who didn't complete an intermediary step | |
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 | |
rspec ./spec/models/cohort_spec.rb:8 # Cohort::Generic should assign a simple signup event to all time-based default cohorts | |
rake aborted! | |
/Users/ry/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -S rspec ./spec/models/cohort_query_spec.rb ./spec/models/cohort_spec.rb ./spec/models/email_spec.rb ./spec/models/event_funnel_spec.rb ./spec/models/jobs/create_event_spec.rb ./spec/requests/event_funnel_spec.rb ./spec/requests/product_overview_spec.rb failed | |
$ bundle exec rails c | |
Loading development environment (Rails 3.2.8) | |
[1] pry(main)> Date.today == Date.yesterday | |
=> true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment