news_spec broken

1 view
Skip to first unread message

Alex Chaffee

unread,
Dec 5, 2012, 10:03:46 PM12/5/12
to groupiter-dev
Is it broken for all, or just me?

  1) News#timeline_data should have two top-level groups
     Failure/Error: timeline_data.keys.should == ["group_#{group.id}", "group_#{other_group.id}"]
       expected: ["group_1", "group_2"]
            got: ["1", "2"] (using ==)
     # ./spec/models/news_spec.rb:26:in `block (3 levels) in <top (required)>'

  2) News#timeline_data should return an add_member_event
     Failure/Error: add_member_timeline_events = timeline_data_for_group["add_group_member_events"]
     NoMethodError:
       undefined method `[]' for nil:NilClass
     # ./spec/models/news_spec.rb:32:in `block (3 levels) in <top (required)>'

  3) News#timeline_data should return a create_gfile_event and a save_version_event
     Failure/Error: create_gfile_events = timeline_data_for_group['create_gfile_events']
     NoMethodError:
       undefined method `[]' for nil:NilClass
     # ./spec/models/news_spec.rb:40:in `block (3 levels) in <top (required)>'

  4) News#timeline_data should return an add_comment_event for a commented version
     Failure/Error: timeline_data_for_group["add_comment_events"].count.should == 1
     NoMethodError:
       undefined method `[]' for nil:NilClass
     # ./spec/models/news_spec.rb:52:in `block (3 levels) in <top (required)>'

  5) News#timeline_data should return an accept_invite_event
     Failure/Error: timeline_data_for_group["accept_invite_events"].count.should == 1
     NoMethodError:
       undefined method `[]' for nil:NilClass
     # ./spec/models/news_spec.rb:60:in `block (3 levels) in <top (required)>'


--
Alex Chaffee - al...@stinky.com
http://alexchaffee.com
Reply all
Reply to author
Forward
0 new messages