diff --git a/lib/factory_girl/syntax/vintage.rb b/lib/factory_girl/syntax/vintage.rb index 8b148483c..3fac2f4e9 100644 --- a/lib/factory_girl/syntax/vintage.rb +++ b/lib/factory_girl/syntax/vintage.rb @@ -1,7 +1,7 @@ module FactoryGirl module Syntax module Vintage - module Factory + module ::Factory # Defines a new factory that can be used by the build strategies (create and # build) to build new objects. # @@ -140,7 +140,7 @@ def self.stub(name, overrides = {}) # Example: # Factory(:user, :name => 'Joe') def Factory(name, attrs = {}) - Factory.default_strategy(name, attrs) + ::Factory.default_strategy(name, attrs) end end end