Permalink
Browse files

minor fix in sequence macro

  • Loading branch information...
1 parent a7d6669 commit b6734805d77fa6fd04b9ed0723ca073851ccf984 @kristianmandrup committed Mar 29, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/factory_girl/syntax/default.rb
@@ -36,9 +36,7 @@ def sequence(name, start_value = 1, &block)
# define aliased sequence
# - register multiple sequences with same logic but different identifying names
def sequences(*names, &block)
- names.each do |name|
- FactoryGirl.register_sequence(Sequence.new(names, &block))
- end
+ FactoryGirl.register_sequence(Sequence.new(names, &block))
end
def trait(name, &block)

0 comments on commit b673480

Please sign in to comment.