Created
January 9, 2012 17:57
-
-
Save ruprict/1584127 to your computer and use it in GitHub Desktop.
Test errors
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
15) Error: | |
test: Given 3 days of Kycks when the scorer has never been run before should generate scores for Kycks within the past 2 days. (ScorerTest): | |
Mocha::ExpectationError: unexpected invocation: #<Object:0x104727d38>.publish('channel' => '/users/NcqqRNBRmUZwua1x68JS/notifications', 'message' => {'id' => 1, 'unread' => true, 'kind' => 'post_commented', 'text' => 'John Doe121 has commented on your KYCK', 'partialText' => 'has commented on your KYCK', 'objID' => 1, 'objType' => 'Post', 'objAlias' => nil, 'createdAt' => '2012-01-09T00:00:00Z', 'previewURL' => nil, 'previewRatio' => nil, 'initiator' => {'id' => 1, 'firstName' => 'John', 'lastName' => 'Doe121', 'avatarURL' => 'http://192.168.1.143:3000/assets/default_avatar.gif', 'alias' => nil, 'followedByCurrentUser' => false}}) | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).arse(any_parameters) | |
- expected exactly once, invoked twice: #<Object:0x104727d38>.publish(any_parameters) | |
satisfied expectations: | |
- allowed any number of times, invoked once: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, invoked twice: NotificationManager.comet_client(any_parameters) | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:111:in `comet_publish' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:86:in `notification' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:24:in `post_commented' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/app/models/post/comment.rb:49:in `send_notifications' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:404:in `_run_create_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:268:in `create' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:294:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `block in create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:417:in `_run_save_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:37:in `save' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/validations.rb:50:in `save' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/attribute_methods/dirty.rb:22:in `save' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:241:in `block (2 levels) in save' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:293:in `with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:241:in `block in save' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:252:in `rollback_active_record_state!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:240:in `save' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/has_many_association.rb:16:in `insert_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:425:in `block (2 levels) in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:337:in `add_to_target' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:423:in `block in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:147:in `block in transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:146:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:422:in `create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:111:in `create' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_proxy.rb:54:in `create' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/integration/top_kyck/scorer_test.rb:13:in `block (4 levels) in <class:ScorerTest>' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/integration/top_kyck/scorer_test.rb:12:in `tap' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/integration/top_kyck/scorer_test.rb:12:in `block (3 levels) in <class:ScorerTest>' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/integration/top_kyck/scorer_test.rb:9:in `each' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/integration/top_kyck/scorer_test.rb:9:in `map' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/integration/top_kyck/scorer_test.rb:9:in `block (2 levels) in <class:ScorerTest>' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `call' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `block in run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `each' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:391:in `run_all_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:395:in `run_parent_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:379:in `block in create_test_from_should_hash' | |
16) Error: | |
test: Given 3 days of Kycks when the scorer has never been run before should not generate scores for Kycks created more than 2 days ago. (ScorerTest): | |
Mocha::ExpectationError: unexpected invocation: #<Object:0x104727d38>.publish('channel' => '/users/cVcxaKsGFzw1xkM8sDM5/notifications', 'message' => {'id' => 1, 'unread' => true, 'kind' => 'post_commented', 'text' => 'John Doe123 has commented on your KYCK', 'partialText' => 'has commented on your KYCK', 'objID' => 1, 'objType' => 'Post', 'objAlias' => nil, 'createdAt' => '2012-01-09T00:00:00Z', 'previewURL' => nil, 'previewRatio' => nil, 'initiator' => {'id' => 1, 'firstName' => 'John', 'lastName' => 'Doe123', 'avatarURL' => 'http://192.168.1.143:3000/assets/default_avatar.gif', 'alias' => nil, 'followedByCurrentUser' => false}}) | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).arse(any_parameters) | |
- expected exactly once, invoked 3 times: #<Object:0x104727d38>.publish(any_parameters) | |
satisfied expectations: | |
- allowed any number of times, invoked once: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, invoked 3 times: NotificationManager.comet_client(any_parameters) | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:111:in `comet_publish' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:86:in `notification' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:24:in `post_commented' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/app/models/post/comment.rb:49:in `send_notifications' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:404:in `_run_create_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:268:in `create' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:294:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `block in create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:417:in `_run_save_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:37:in `save' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/validations.rb:50:in `save' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/attribute_methods/dirty.rb:22:in `save' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:241:in `block (2 levels) in save' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:293:in `with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:241:in `block in save' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:252:in `rollback_active_record_state!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:240:in `save' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/has_many_association.rb:16:in `insert_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:425:in `block (2 levels) in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:337:in `add_to_target' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:423:in `block in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:147:in `block in transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:146:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:422:in `create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:111:in `create' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_proxy.rb:54:in `create' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/integration/top_kyck/scorer_test.rb:13:in `block (4 levels) in <class:ScorerTest>' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/integration/top_kyck/scorer_test.rb:12:in `tap' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/integration/top_kyck/scorer_test.rb:12:in `block (3 levels) in <class:ScorerTest>' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/integration/top_kyck/scorer_test.rb:9:in `each' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/integration/top_kyck/scorer_test.rb:9:in `map' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/integration/top_kyck/scorer_test.rb:9:in `block (2 levels) in <class:ScorerTest>' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `call' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `block in run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `each' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:391:in `run_all_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:395:in `run_parent_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:379:in `block in create_test_from_should_hash' | |
17) Error: | |
test: Given 3 days of Kycks when the scorer has never been run before then we change the score weightings and generate new scores should have replaced old scores with new scores. (ScorerTest): | |
Mocha::ExpectationError: unexpected invocation: #<Object:0x104727d38>.publish('channel' => '/users/pGoCGWxKBgs89JSxsLap/notifications', 'message' => {'id' => 1, 'unread' => true, 'kind' => 'post_commented', 'text' => 'John Doe125 has commented on your KYCK', 'partialText' => 'has commented on your KYCK', 'objID' => 1, 'objType' => 'Post', 'objAlias' => nil, 'createdAt' => '2012-01-09T00:00:00Z', 'previewURL' => nil, 'previewRatio' => nil, 'initiator' => {'id' => 1, 'firstName' => 'John', 'lastName' => 'Doe125', 'avatarURL' => 'http://192.168.1.143:3000/assets/default_avatar.gif', 'alias' => nil, 'followedByCurrentUser' => false}}) | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).arse(any_parameters) | |
- expected exactly once, invoked 4 times: #<Object:0x104727d38>.publish(any_parameters) | |
satisfied expectations: | |
- allowed any number of times, invoked once: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, invoked 4 times: NotificationManager.comet_client(any_parameters) | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:111:in `comet_publish' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:86:in `notification' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:24:in `post_commented' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/app/models/post/comment.rb:49:in `send_notifications' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:404:in `_run_create_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:268:in `create' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:294:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `block in create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:417:in `_run_save_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:37:in `save' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/validations.rb:50:in `save' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/attribute_methods/dirty.rb:22:in `save' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:241:in `block (2 levels) in save' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:293:in `with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:241:in `block in save' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:252:in `rollback_active_record_state!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:240:in `save' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/has_many_association.rb:16:in `insert_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:425:in `block (2 levels) in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:337:in `add_to_target' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:423:in `block in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:147:in `block in transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:146:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:422:in `create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:111:in `create' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_proxy.rb:54:in `create' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/integration/top_kyck/scorer_test.rb:13:in `block (4 levels) in <class:ScorerTest>' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/integration/top_kyck/scorer_test.rb:12:in `tap' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/integration/top_kyck/scorer_test.rb:12:in `block (3 levels) in <class:ScorerTest>' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/integration/top_kyck/scorer_test.rb:9:in `each' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/integration/top_kyck/scorer_test.rb:9:in `map' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/integration/top_kyck/scorer_test.rb:9:in `block (2 levels) in <class:ScorerTest>' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `call' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `block in run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `each' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:391:in `run_all_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:395:in `run_parent_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:390:in `run_all_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:395:in `run_parent_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:379:in `block in create_test_from_should_hash' | |
18) Error: | |
test: Given Kyck and Kyck is liked by a fan should decrement value of fan like from Kyck trendingness score when Kyck is unliked. (TrendingnessCalculatorTest): | |
Mocha::ExpectationError: unexpected invocation: #<Object:0x104727d38>.publish('channel' => '/users/P1auipcwdHyavCbfLweJ/notifications', 'message' => {'id' => 1, 'unread' => true, 'kind' => 'post_liked', 'text' => 'John Doe145 likes your KYCK', 'partialText' => 'likes your KYCK', 'objID' => 1, 'objType' => 'Post', 'objAlias' => nil, 'createdAt' => '2012-01-09T17:56:00Z', 'previewURL' => nil, 'previewRatio' => nil, 'initiator' => {'id' => 2, 'firstName' => 'John', 'lastName' => 'Doe145', 'avatarURL' => 'http://192.168.1.143:3000/assets/default_avatar.gif', 'alias' => nil, 'followedByCurrentUser' => false}}) | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).arse(any_parameters) | |
- expected exactly once, invoked 5 times: #<Object:0x104727d38>.publish(any_parameters) | |
satisfied expectations: | |
- allowed any number of times, invoked once: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, invoked 5 times: NotificationManager.comet_client(any_parameters) | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:111:in `comet_publish' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:86:in `notification' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:14:in `post_liked' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/app/models/post/like.rb:40:in `like_by' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/unit/top_kyck/trendingness_calculator_test.rb:25:in `block (3 levels) in <class:TrendingnessCalculatorTest>' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `call' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `block in run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `each' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:381:in `block in create_test_from_should_hash' | |
19) Error: | |
test: Given Kyck and Kyck is liked by a fan should increment trendingness by fan Like value. (TrendingnessCalculatorTest): | |
Mocha::ExpectationError: unexpected invocation: #<Object:0x104727d38>.publish('channel' => '/users/zB9his9sF5zoUVXLpS5k/notifications', 'message' => {'id' => 1, 'unread' => true, 'kind' => 'post_liked', 'text' => 'John Doe147 likes your KYCK', 'partialText' => 'likes your KYCK', 'objID' => 1, 'objType' => 'Post', 'objAlias' => nil, 'createdAt' => '2012-01-09T17:56:00Z', 'previewURL' => nil, 'previewRatio' => nil, 'initiator' => {'id' => 2, 'firstName' => 'John', 'lastName' => 'Doe147', 'avatarURL' => 'http://192.168.1.143:3000/assets/default_avatar.gif', 'alias' => nil, 'followedByCurrentUser' => false}}) | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).arse(any_parameters) | |
- expected exactly once, invoked 6 times: #<Object:0x104727d38>.publish(any_parameters) | |
satisfied expectations: | |
- allowed any number of times, invoked once: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, invoked 6 times: NotificationManager.comet_client(any_parameters) | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:111:in `comet_publish' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:86:in `notification' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:14:in `post_liked' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/app/models/post/like.rb:40:in `like_by' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/unit/top_kyck/trendingness_calculator_test.rb:25:in `block (3 levels) in <class:TrendingnessCalculatorTest>' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `call' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `block in run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `each' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:381:in `block in create_test_from_should_hash' | |
20) Error: | |
test: Given Kyck and Kyck is liked by a non-fan should decrement value of non-fan like from Kyck trendingness score when Kyck is unliked. (TrendingnessCalculatorTest): | |
Mocha::ExpectationError: unexpected invocation: #<Object:0x104727d38>.publish('channel' => '/users/YY3d4HyGjadKzUmRGxzh/notifications', 'message' => {'id' => 1, 'unread' => true, 'kind' => 'post_liked', 'text' => 'John Doe149 likes your KYCK', 'partialText' => 'likes your KYCK', 'objID' => 1, 'objType' => 'Post', 'objAlias' => nil, 'createdAt' => '2012-01-09T17:56:01Z', 'previewURL' => nil, 'previewRatio' => nil, 'initiator' => {'id' => 2, 'firstName' => 'John', 'lastName' => 'Doe149', 'avatarURL' => 'http://192.168.1.143:3000/assets/default_avatar.gif', 'alias' => nil, 'followedByCurrentUser' => false}}) | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).arse(any_parameters) | |
- expected exactly once, invoked 7 times: #<Object:0x104727d38>.publish(any_parameters) | |
satisfied expectations: | |
- allowed any number of times, invoked once: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, invoked 7 times: NotificationManager.comet_client(any_parameters) | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:111:in `comet_publish' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:86:in `notification' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:14:in `post_liked' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/app/models/post/like.rb:40:in `like_by' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/unit/top_kyck/trendingness_calculator_test.rb:44:in `block (3 levels) in <class:TrendingnessCalculatorTest>' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `call' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `block in run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `each' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:381:in `block in create_test_from_should_hash' | |
21) Error: | |
test: Given Kyck and Kyck is liked by a non-fan should increment trendingness by non-fan Like value. (TrendingnessCalculatorTest): | |
Mocha::ExpectationError: unexpected invocation: #<Object:0x104727d38>.publish('channel' => '/users/iPMxNyHtNqNJUieTRKs9/notifications', 'message' => {'id' => 1, 'unread' => true, 'kind' => 'post_liked', 'text' => 'John Doe151 likes your KYCK', 'partialText' => 'likes your KYCK', 'objID' => 1, 'objType' => 'Post', 'objAlias' => nil, 'createdAt' => '2012-01-09T17:56:01Z', 'previewURL' => nil, 'previewRatio' => nil, 'initiator' => {'id' => 2, 'firstName' => 'John', 'lastName' => 'Doe151', 'avatarURL' => 'http://192.168.1.143:3000/assets/default_avatar.gif', 'alias' => nil, 'followedByCurrentUser' => false}}) | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).arse(any_parameters) | |
- expected exactly once, invoked 8 times: #<Object:0x104727d38>.publish(any_parameters) | |
satisfied expectations: | |
- allowed any number of times, invoked once: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, invoked 8 times: NotificationManager.comet_client(any_parameters) | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:111:in `comet_publish' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:86:in `notification' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:14:in `post_liked' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/app/models/post/like.rb:40:in `like_by' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/unit/top_kyck/trendingness_calculator_test.rb:44:in `block (3 levels) in <class:TrendingnessCalculatorTest>' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `call' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `block in run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `each' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:381:in `block in create_test_from_should_hash' | |
22) Error: | |
test: Given Kyck and given Comment is created on Kyck and Comment is 2nd consecutive by commenter should increment trendingness by 2nd consecutive comment score. (TrendingnessCalculatorTest): | |
Mocha::ExpectationError: unexpected invocation: #<Object:0x104727d38>.publish('channel' => '/users/Fh6cCqxePmZy5YQYR533/notifications', 'message' => {'id' => 1, 'unread' => true, 'kind' => 'post_commented', 'text' => 'John Doe153 has commented on your KYCK', 'partialText' => 'has commented on your KYCK', 'objID' => 1, 'objType' => 'Post', 'objAlias' => nil, 'createdAt' => '2012-01-09T17:56:02Z', 'previewURL' => nil, 'previewRatio' => nil, 'initiator' => {'id' => 2, 'firstName' => 'John', 'lastName' => 'Doe153', 'avatarURL' => 'http://192.168.1.143:3000/assets/default_avatar.gif', 'alias' => nil, 'followedByCurrentUser' => false}}) | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).arse(any_parameters) | |
- expected exactly once, invoked 9 times: #<Object:0x104727d38>.publish(any_parameters) | |
satisfied expectations: | |
- allowed any number of times, invoked once: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, invoked 9 times: NotificationManager.comet_client(any_parameters) | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:111:in `comet_publish' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:86:in `notification' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:24:in `post_commented' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/app/models/post/comment.rb:49:in `send_notifications' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:404:in `_run_create_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:268:in `create' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:294:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `block in create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:417:in `_run_save_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:57:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/validations.rb:56:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/attribute_methods/dirty.rb:33:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:246:in `block in save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:293:in `with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:246:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/has_many_association.rb:14:in `insert_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:425:in `block (2 levels) in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:337:in `add_to_target' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:423:in `block in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:147:in `block in transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:146:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:422:in `create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:115:in `create!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_proxy.rb:54:in `create!' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/unit/top_kyck/trendingness_calculator_test.rb:63:in `block (3 levels) in <class:TrendingnessCalculatorTest>' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `call' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `block in run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `each' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:391:in `run_all_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:395:in `run_parent_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:379:in `block in create_test_from_should_hash' | |
23) Error: | |
test: Given Kyck and given Comment is created on Kyck and Comment is 3rd consecutive by commenter should increment trendingness by 3rd consecutive comment score. (TrendingnessCalculatorTest): | |
Mocha::ExpectationError: unexpected invocation: #<Object:0x104727d38>.publish('channel' => '/users/zu8t7VYFTnae6oDpePzt/notifications', 'message' => {'id' => 1, 'unread' => true, 'kind' => 'post_commented', 'text' => 'John Doe155 has commented on your KYCK', 'partialText' => 'has commented on your KYCK', 'objID' => 1, 'objType' => 'Post', 'objAlias' => nil, 'createdAt' => '2012-01-09T17:56:02Z', 'previewURL' => nil, 'previewRatio' => nil, 'initiator' => {'id' => 2, 'firstName' => 'John', 'lastName' => 'Doe155', 'avatarURL' => 'http://192.168.1.143:3000/assets/default_avatar.gif', 'alias' => nil, 'followedByCurrentUser' => false}}) | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).arse(any_parameters) | |
- expected exactly once, invoked 10 times: #<Object:0x104727d38>.publish(any_parameters) | |
satisfied expectations: | |
- allowed any number of times, invoked once: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, invoked 10 times: NotificationManager.comet_client(any_parameters) | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:111:in `comet_publish' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:86:in `notification' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:24:in `post_commented' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/app/models/post/comment.rb:49:in `send_notifications' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:404:in `_run_create_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:268:in `create' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:294:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `block in create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:417:in `_run_save_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:57:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/validations.rb:56:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/attribute_methods/dirty.rb:33:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:246:in `block in save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:293:in `with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:246:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/has_many_association.rb:14:in `insert_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:425:in `block (2 levels) in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:337:in `add_to_target' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:423:in `block in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:147:in `block in transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:146:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:422:in `create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:115:in `create!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_proxy.rb:54:in `create!' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/unit/top_kyck/trendingness_calculator_test.rb:63:in `block (3 levels) in <class:TrendingnessCalculatorTest>' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `call' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `block in run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `each' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:391:in `run_all_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:395:in `run_parent_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:379:in `block in create_test_from_should_hash' | |
24) Error: | |
test: Given Kyck and given Comment is created on Kyck and Comment is 4th consecutive by commenter should increment trendingness by 4th consecutive comment score. (TrendingnessCalculatorTest): | |
Mocha::ExpectationError: unexpected invocation: #<Object:0x104727d38>.publish('channel' => '/users/zFZbEcyKRqzjKSYVWzpz/notifications', 'message' => {'id' => 1, 'unread' => true, 'kind' => 'post_commented', 'text' => 'John Doe157 has commented on your KYCK', 'partialText' => 'has commented on your KYCK', 'objID' => 1, 'objType' => 'Post', 'objAlias' => nil, 'createdAt' => '2012-01-09T17:56:02Z', 'previewURL' => nil, 'previewRatio' => nil, 'initiator' => {'id' => 2, 'firstName' => 'John', 'lastName' => 'Doe157', 'avatarURL' => 'http://192.168.1.143:3000/assets/default_avatar.gif', 'alias' => nil, 'followedByCurrentUser' => false}}) | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).arse(any_parameters) | |
- expected exactly once, invoked 11 times: #<Object:0x104727d38>.publish(any_parameters) | |
satisfied expectations: | |
- allowed any number of times, invoked once: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, invoked 11 times: NotificationManager.comet_client(any_parameters) | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:111:in `comet_publish' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:86:in `notification' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:24:in `post_commented' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/app/models/post/comment.rb:49:in `send_notifications' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:404:in `_run_create_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:268:in `create' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:294:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `block in create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:417:in `_run_save_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:57:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/validations.rb:56:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/attribute_methods/dirty.rb:33:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:246:in `block in save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:293:in `with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:246:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/has_many_association.rb:14:in `insert_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:425:in `block (2 levels) in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:337:in `add_to_target' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:423:in `block in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:147:in `block in transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:146:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:422:in `create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:115:in `create!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_proxy.rb:54:in `create!' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/unit/top_kyck/trendingness_calculator_test.rb:63:in `block (3 levels) in <class:TrendingnessCalculatorTest>' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `call' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `block in run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `each' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:391:in `run_all_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:395:in `run_parent_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:379:in `block in create_test_from_should_hash' | |
25) Error: | |
test: Given Kyck and given Comment is created on Kyck and Comment is tagged with a fan of Kyck's tag should correctly count number of fans tagged on Comment. (TrendingnessCalculatorTest): | |
Mocha::ExpectationError: unexpected invocation: #<Object:0x104727d38>.publish('channel' => '/users/jyHp7hvs5YrEbpDq31SJ/notifications', 'message' => {'id' => 1, 'unread' => true, 'kind' => 'post_commented', 'text' => 'John Doe159 has commented on your KYCK', 'partialText' => 'has commented on your KYCK', 'objID' => 1, 'objType' => 'Post', 'objAlias' => nil, 'createdAt' => '2012-01-09T17:56:03Z', 'previewURL' => nil, 'previewRatio' => nil, 'initiator' => {'id' => 2, 'firstName' => 'John', 'lastName' => 'Doe159', 'avatarURL' => 'http://192.168.1.143:3000/assets/default_avatar.gif', 'alias' => nil, 'followedByCurrentUser' => false}}) | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).arse(any_parameters) | |
- expected exactly once, invoked 12 times: #<Object:0x104727d38>.publish(any_parameters) | |
satisfied expectations: | |
- allowed any number of times, invoked once: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, invoked 12 times: NotificationManager.comet_client(any_parameters) | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:111:in `comet_publish' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:86:in `notification' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:24:in `post_commented' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/app/models/post/comment.rb:49:in `send_notifications' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:404:in `_run_create_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:268:in `create' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:294:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `block in create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:417:in `_run_save_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:57:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/validations.rb:56:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/attribute_methods/dirty.rb:33:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:246:in `block in save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:293:in `with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:246:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/has_many_association.rb:14:in `insert_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:425:in `block (2 levels) in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:337:in `add_to_target' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:423:in `block in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:147:in `block in transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:146:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:422:in `create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:115:in `create!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_proxy.rb:54:in `create!' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/unit/top_kyck/trendingness_calculator_test.rb:63:in `block (3 levels) in <class:TrendingnessCalculatorTest>' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `call' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `block in run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `each' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:391:in `run_all_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:395:in `run_parent_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:379:in `block in create_test_from_should_hash' | |
26) Error: | |
test: Given Kyck and given Comment is created on Kyck and Comment is tagged with a fan of Kyck's tag should increment trendingness by fan-tagged Comment value and nonfan Comment value. (TrendingnessCalculatorTest): | |
Mocha::ExpectationError: unexpected invocation: #<Object:0x104727d38>.publish('channel' => '/users/1LpCbFCn2MQXMeyAA9Bm/notifications', 'message' => {'id' => 1, 'unread' => true, 'kind' => 'post_commented', 'text' => 'John Doe161 has commented on your KYCK', 'partialText' => 'has commented on your KYCK', 'objID' => 1, 'objType' => 'Post', 'objAlias' => nil, 'createdAt' => '2012-01-09T17:56:03Z', 'previewURL' => nil, 'previewRatio' => nil, 'initiator' => {'id' => 2, 'firstName' => 'John', 'lastName' => 'Doe161', 'avatarURL' => 'http://192.168.1.143:3000/assets/default_avatar.gif', 'alias' => nil, 'followedByCurrentUser' => false}}) | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).arse(any_parameters) | |
- expected exactly once, invoked 13 times: #<Object:0x104727d38>.publish(any_parameters) | |
satisfied expectations: | |
- allowed any number of times, invoked once: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, invoked 13 times: NotificationManager.comet_client(any_parameters) | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:111:in `comet_publish' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:86:in `notification' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:24:in `post_commented' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/app/models/post/comment.rb:49:in `send_notifications' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:404:in `_run_create_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:268:in `create' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:294:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `block in create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:417:in `_run_save_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:57:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/validations.rb:56:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/attribute_methods/dirty.rb:33:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:246:in `block in save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:293:in `with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:246:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/has_many_association.rb:14:in `insert_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:425:in `block (2 levels) in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:337:in `add_to_target' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:423:in `block in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:147:in `block in transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:146:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:422:in `create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:115:in `create!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_proxy.rb:54:in `create!' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/unit/top_kyck/trendingness_calculator_test.rb:63:in `block (3 levels) in <class:TrendingnessCalculatorTest>' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `call' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `block in run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `each' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:391:in `run_all_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:395:in `run_parent_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:379:in `block in create_test_from_should_hash' | |
27) Error: | |
test: Given Kyck and given Comment is created on Kyck and Comment is tagged with a non-fan should not have incremented trendingness by fan-tagged Comment value. (TrendingnessCalculatorTest): | |
Mocha::ExpectationError: unexpected invocation: #<Object:0x104727d38>.publish('channel' => '/users/yzrWNy3ZNHRDqcUxqmWb/notifications', 'message' => {'id' => 1, 'unread' => true, 'kind' => 'post_commented', 'text' => 'John Doe163 has commented on your KYCK', 'partialText' => 'has commented on your KYCK', 'objID' => 1, 'objType' => 'Post', 'objAlias' => nil, 'createdAt' => '2012-01-09T17:56:04Z', 'previewURL' => nil, 'previewRatio' => nil, 'initiator' => {'id' => 2, 'firstName' => 'John', 'lastName' => 'Doe163', 'avatarURL' => 'http://192.168.1.143:3000/assets/default_avatar.gif', 'alias' => nil, 'followedByCurrentUser' => false}}) | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).arse(any_parameters) | |
- expected exactly once, invoked 14 times: #<Object:0x104727d38>.publish(any_parameters) | |
satisfied expectations: | |
- allowed any number of times, invoked once: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, invoked 14 times: NotificationManager.comet_client(any_parameters) | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:111:in `comet_publish' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:86:in `notification' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:24:in `post_commented' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/app/models/post/comment.rb:49:in `send_notifications' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:404:in `_run_create_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:268:in `create' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:294:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `block in create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:417:in `_run_save_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:57:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/validations.rb:56:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/attribute_methods/dirty.rb:33:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:246:in `block in save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:293:in `with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:246:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/has_many_association.rb:14:in `insert_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:425:in `block (2 levels) in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:337:in `add_to_target' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:423:in `block in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:147:in `block in transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:146:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:422:in `create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:115:in `create!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_proxy.rb:54:in `create!' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/unit/top_kyck/trendingness_calculator_test.rb:63:in `block (3 levels) in <class:TrendingnessCalculatorTest>' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `call' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `block in run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `each' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:391:in `run_all_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:395:in `run_parent_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:379:in `block in create_test_from_should_hash' | |
28) Error: | |
test: Given Kyck and given Comment is created on Kyck and Kyck has no tags should increment trendingness by non-fan Comment value. (TrendingnessCalculatorTest): | |
Mocha::ExpectationError: unexpected invocation: #<Object:0x104727d38>.publish('channel' => '/users/dtMZehK63zvyb5zgnFCq/notifications', 'message' => {'id' => 1, 'unread' => true, 'kind' => 'post_commented', 'text' => 'John Doe165 has commented on your KYCK', 'partialText' => 'has commented on your KYCK', 'objID' => 1, 'objType' => 'Post', 'objAlias' => nil, 'createdAt' => '2012-01-09T17:56:04Z', 'previewURL' => nil, 'previewRatio' => nil, 'initiator' => {'id' => 2, 'firstName' => 'John', 'lastName' => 'Doe165', 'avatarURL' => 'http://192.168.1.143:3000/assets/default_avatar.gif', 'alias' => nil, 'followedByCurrentUser' => false}}) | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).arse(any_parameters) | |
- expected exactly once, invoked 15 times: #<Object:0x104727d38>.publish(any_parameters) | |
satisfied expectations: | |
- allowed any number of times, invoked once: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, invoked 15 times: NotificationManager.comet_client(any_parameters) | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:111:in `comet_publish' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:86:in `notification' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:24:in `post_commented' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/app/models/post/comment.rb:49:in `send_notifications' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:404:in `_run_create_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:268:in `create' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:294:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `block in create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:417:in `_run_save_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:57:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/validations.rb:56:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/attribute_methods/dirty.rb:33:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:246:in `block in save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:293:in `with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:246:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/has_many_association.rb:14:in `insert_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:425:in `block (2 levels) in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:337:in `add_to_target' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:423:in `block in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:147:in `block in transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:146:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:422:in `create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:115:in `create!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_proxy.rb:54:in `create!' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/unit/top_kyck/trendingness_calculator_test.rb:63:in `block (3 levels) in <class:TrendingnessCalculatorTest>' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `call' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `block in run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `each' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:391:in `run_all_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:395:in `run_parent_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:379:in `block in create_test_from_should_hash' | |
29) Error: | |
test: Given Kyck and given Comment is created on Kyck and commenter has Kyck's tag as favorite should increment trendingness by fan Comment value. (TrendingnessCalculatorTest): | |
Mocha::ExpectationError: unexpected invocation: #<Object:0x104727d38>.publish('channel' => '/users/W9BvoWqjXMQLWAxXR8sY/notifications', 'message' => {'id' => 1, 'unread' => true, 'kind' => 'post_commented', 'text' => 'John Doe167 has commented on your KYCK', 'partialText' => 'has commented on your KYCK', 'objID' => 1, 'objType' => 'Post', 'objAlias' => nil, 'createdAt' => '2012-01-09T17:56:05Z', 'previewURL' => nil, 'previewRatio' => nil, 'initiator' => {'id' => 2, 'firstName' => 'John', 'lastName' => 'Doe167', 'avatarURL' => 'http://192.168.1.143:3000/assets/default_avatar.gif', 'alias' => nil, 'followedByCurrentUser' => false}}) | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).arse(any_parameters) | |
- expected exactly once, invoked 16 times: #<Object:0x104727d38>.publish(any_parameters) | |
satisfied expectations: | |
- allowed any number of times, invoked once: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, invoked 16 times: NotificationManager.comet_client(any_parameters) | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:111:in `comet_publish' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:86:in `notification' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:24:in `post_commented' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/app/models/post/comment.rb:49:in `send_notifications' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:404:in `_run_create_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:268:in `create' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:294:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `block in create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:417:in `_run_save_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activesupport-3.1.1/lib/active_support/callbacks.rb:81:in `run_callbacks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/callbacks.rb:264:in `create_or_update' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/persistence.rb:57:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/validations.rb:56:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/attribute_methods/dirty.rb:33:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:246:in `block in save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:293:in `with_transaction_returning_status' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:246:in `save!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/has_many_association.rb:14:in `insert_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:425:in `block (2 levels) in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:337:in `add_to_target' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:423:in `block in create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:147:in `block in transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/transactions.rb:208:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:146:in `transaction' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:422:in `create_record' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_association.rb:115:in `create!' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/activerecord-3.1.1/lib/active_record/associations/collection_proxy.rb:54:in `create!' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/unit/top_kyck/trendingness_calculator_test.rb:63:in `block (3 levels) in <class:TrendingnessCalculatorTest>' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `call' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `block in run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `each' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:391:in `run_all_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:395:in `run_parent_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:379:in `block in create_test_from_should_hash' | |
30) Error: | |
test: Given Kyck tagged with 2 teams is Liked and Liker is a Fan of a team tagged on the Kyck should generate Interest-Fan-Liked score increment for each thing tagged on the Kyck favorited by the liker. (UserInterestCalculatorTest): | |
Mocha::ExpectationError: unexpected invocation: #<Object:0x104727d38>.publish('channel' => '/users/syAcsysbS47smkAz17Vb/notifications', 'message' => {'id' => 1, 'unread' => true, 'kind' => 'post_liked', 'text' => 'John Doe171 likes your KYCK', 'partialText' => 'likes your KYCK', 'objID' => 1, 'objType' => 'Post', 'objAlias' => nil, 'createdAt' => '2012-01-09T17:56:06Z', 'previewURL' => nil, 'previewRatio' => nil, 'initiator' => {'id' => 2, 'firstName' => 'John', 'lastName' => 'Doe171', 'avatarURL' => 'http://192.168.1.143:3000/assets/default_avatar.gif', 'alias' => nil, 'followedByCurrentUser' => false}}) | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).arse(any_parameters) | |
- expected exactly once, invoked 17 times: #<Object:0x104727d38>.publish(any_parameters) | |
satisfied expectations: | |
- allowed any number of times, invoked once: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, invoked 17 times: NotificationManager.comet_client(any_parameters) | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:111:in `comet_publish' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:86:in `notification' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:14:in `post_liked' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/app/models/post/like.rb:40:in `like_by' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/unit/top_kyck/user_interest_calculator_test.rb:144:in `block (2 levels) in <class:UserInterestCalculatorTest>' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `call' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `block in run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `each' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:391:in `run_all_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:395:in `run_parent_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:379:in `block in create_test_from_should_hash' | |
31) Error: | |
test: Given Kyck tagged with 2 teams is Liked should generate Interest-Liked score increment for a team tagged on the Kyck. (UserInterestCalculatorTest): | |
Mocha::ExpectationError: unexpected invocation: #<Object:0x104727d38>.publish('channel' => '/users/c44JEqVHJzhDn3fxFp9p/notifications', 'message' => {'id' => 1, 'unread' => true, 'kind' => 'post_liked', 'text' => 'John Doe173 likes your KYCK', 'partialText' => 'likes your KYCK', 'objID' => 1, 'objType' => 'Post', 'objAlias' => nil, 'createdAt' => '2012-01-09T17:56:06Z', 'previewURL' => nil, 'previewRatio' => nil, 'initiator' => {'id' => 2, 'firstName' => 'John', 'lastName' => 'Doe173', 'avatarURL' => 'http://192.168.1.143:3000/assets/default_avatar.gif', 'alias' => nil, 'followedByCurrentUser' => false}}) | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).arse(any_parameters) | |
- expected exactly once, invoked 18 times: #<Object:0x104727d38>.publish(any_parameters) | |
satisfied expectations: | |
- allowed any number of times, invoked once: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, invoked 18 times: NotificationManager.comet_client(any_parameters) | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:111:in `comet_publish' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:86:in `notification' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:14:in `post_liked' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/app/models/post/like.rb:40:in `like_by' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/unit/top_kyck/user_interest_calculator_test.rb:144:in `block (2 levels) in <class:UserInterestCalculatorTest>' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `call' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `block in run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `each' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:381:in `block in create_test_from_should_hash' | |
32) Error: | |
test: Given Kyck tagged with 2 teams is Liked then un-liked should generate Interest-Un-Liked score increment for each Team tagged on the Kyck. (UserInterestCalculatorTest): | |
Mocha::ExpectationError: unexpected invocation: #<Object:0x104727d38>.publish('channel' => '/users/VLNq4V1si3CZgnRHQTsM/notifications', 'message' => {'id' => 1, 'unread' => true, 'kind' => 'post_liked', 'text' => 'John Doe175 likes your KYCK', 'partialText' => 'likes your KYCK', 'objID' => 1, 'objType' => 'Post', 'objAlias' => nil, 'createdAt' => '2012-01-09T17:56:07Z', 'previewURL' => nil, 'previewRatio' => nil, 'initiator' => {'id' => 2, 'firstName' => 'John', 'lastName' => 'Doe175', 'avatarURL' => 'http://192.168.1.143:3000/assets/default_avatar.gif', 'alias' => nil, 'followedByCurrentUser' => false}}) | |
unsatisfied expectations: | |
- expected exactly once, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).arse(any_parameters) | |
- expected exactly once, invoked 19 times: #<Object:0x104727d38>.publish(any_parameters) | |
satisfied expectations: | |
- allowed any number of times, invoked once: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, not yet invoked: Event(id: integer, name: string, starting_at: datetime, icon: string, icon_ratio: float, checkins_count: integer, posts_count: integer, created_at: datetime, updated_at: datetime, kind: string, user_id: integer, team1_id: integer, team2_id: integer, description: text, tv_channel_id: integer, opta_id: integer, team1_score: integer, team2_score: integer, checkedin_at: datetime, notification_state: string, final: boolean, location_id: integer).find_or_create_by_opta_id_and_team1_and_team2_and_starting_at!(any_parameters) | |
- allowed any number of times, invoked 19 times: NotificationManager.comet_client(any_parameters) | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:111:in `comet_publish' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:86:in `notification' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/extras/notification_manager.rb:14:in `post_liked' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/app/models/post/like.rb:40:in `like_by' | |
/Users/ggoodrich/rb/rails_apps/kyck/Web/test/unit/top_kyck/user_interest_calculator_test.rb:144:in `block (2 levels) in <class:UserInterestCalculatorTest>' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `call' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:400:in `block in run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `each' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:399:in `run_current_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:391:in `run_all_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:395:in `run_parent_setup_blocks' | |
/Users/ggoodrich/.rvm/gems/ruby-1.9.2-p290@kyck/gems/shoulda-2.11.3/lib/shoulda/context.rb:379:in `block in create_test_from_should_hash' | |
98 tests, 92 assertions, 0 failures, 32 errors, 0 skips |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment