Skip to content

Instantly share code, notes, and snippets.

@aitor
Created September 16, 2008 16:02
Show Gist options
  • Save aitor/11048 to your computer and use it in GitHub Desktop.
Save aitor/11048 to your computer and use it in GitHub Desktop.
setup do
@margie = Factory(:user, :login => 'm.thatcher')
@jaiku = Factory(:jaiku, :content => "To solve Britain’s economic Disease with Socialism is like treating leukaemia with leeches.", :user => @margie)
@activity = @jaiku.activities.first
end
should 'link the activities created on a model with the user that is generating the activity' do
assert_equal @margie, @activity.user, "The activity should be registered as made by the user that create the jaiku"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment