Created
February 21, 2012 22:17
-
-
Save mulderp/1879401 to your computer and use it in GitHub Desktop.
Possible spec for newsfeed with Streama
This file contains hidden or 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
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 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment