Skip to content

Commit

Permalink
Remove comment since the behavior it describes has been moved
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaclayton committed Feb 10, 2012
1 parent 3b696b9 commit 88be1de
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions lib/factory_girl/strategy.rb
Expand Up @@ -9,38 +9,6 @@ module FactoryGirl
class Strategy #:nodoc:
include Observable

# Generates an association using the current build strategy.
#
# Arguments:
# name: (Symbol)
# The name of the factory that should be used to generate this
# association.
# attributes: (Hash)
# A hash of attributes that should be overridden for this association.
#
# Returns:
# The generated association for the current build strategy. Note that
# associations are not generated for the attributes_for strategy. Returns
# nil in this case.
#
# Example:
#
# factory :user do
# # ...
# end
#
# factory :post do
# # ...
# author { |post| post.association(:user, :name => 'Joe') }
# end
#
# # Builds (but doesn't save) a Post and a User
# FactoryGirl.build(:post)
#
# # Builds and saves a User, builds a Post, assigns the User to the
# # author association, and saves the Post.
# FactoryGirl.create(:post)
#
def association(runner, overrides)
raise NotImplementedError, "Strategies must return an association"
end
Expand Down

0 comments on commit 88be1de

Please sign in to comment.