Skip to content

Commit

Permalink
do not change factory name when passed as symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
morgoth committed Oct 27, 2011
1 parent c26c71f commit 3337196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/factory_girl/factory.rb
Expand Up @@ -8,7 +8,7 @@ class Factory

def initialize(name, options = {}) #:nodoc:
assert_valid_options(options)
@name = name.to_s.underscore.to_sym
@name = name.is_a?(Symbol) ? name : name.to_s.underscore.to_sym
@parent = options[:parent]
@aliases = options[:aliases] || []
@traits = options[:traits] || []
Expand Down

0 comments on commit 3337196

Please sign in to comment.