DC DG; a participation is created in StatusMessageController

This commit is contained in:
danielgrippi 2012-02-10 16:42:21 -08:00
parent 427a1694db
commit 44e072c330
2 changed files with 6 additions and 1 deletions

View file

@ -47,13 +47,13 @@ class StatusMessagesController < ApplicationController
@status_message = current_user.build_post(:status_message, params[:status_message])
@status_message.attach_photos_by_ids(params[:photos])
if @status_message.save
aspects = current_user.aspects_from_ids(destination_aspect_ids)
current_user.add_to_streams(@status_message, aspects)
receiving_services = Service.titles(services)
current_user.dispatch_post(@status_message, :url => short_post_url(@status_message.guid), :service_types => receiving_services)
current_user.participate!(@status_message)
if coming_from_profile_page? # if this is a post coming from a profile page
flash[:notice] = successful_mention_message

View file

@ -8,6 +8,11 @@ Feature: The participate stream
And I post "B- barack obama is your new bicycle"
And I post "C- barack obama is a square"
When I go to the participate page
Then "C- barack obama is a square" should be post 1
And "B- barack obama is your new bicycle" should be post 2
And "A- I like turtles" should be post 3
When I pin the post "A- I like turtles"
And I wait for 1 second
And I comment "Sassy sawfish" on "C- barack obama is a square"