Skip to content

Instantly share code, notes, and snippets.

@mulderp mulderp/gist:1879401
Created Feb 21, 2012

What would you like to do?
Possible spec for newsfeed with Streama
describe "Activity.publish" do
it "pushes activity to public newsfeed" do
@activity = Activity.publish(:share, {:actor => user, :object => link, :target_object => newsfeed, :receivers => @send_to}) ## @send_to ==> could be replaced with Activity.public_audience ??
@activity.receivers.size.should == 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.