Created
September 16, 2008 16:02
-
-
Save aitor/11048 to your computer and use it in GitHub Desktop.
This file contains 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
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