summaryrefslogtreecommitdiff
path: root/spec/factories.rb
diff options
context:
space:
mode:
authorVincent Bonmalais <vb.kouno@gmail.com>2012-11-06 14:31:55 +1100
committerVincent Bonmalais <vb.kouno@gmail.com>2012-11-13 22:27:45 +1100
commit80fb38de7abdfacbf5ad2e0150b934c1392721f0 (patch)
tree302ee55b21e8206ab44cef819a583803b9bb0c6f /spec/factories.rb
parentd52f06f38013540a9798686aa37c4dad120c3d74 (diff)
downloadgitlab-ce-80fb38de7abdfacbf5ad2e0150b934c1392721f0.tar.gz
Remove backward compatibility of factories.
Diffstat (limited to 'spec/factories.rb')
-rw-r--r--spec/factories.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/spec/factories.rb b/spec/factories.rb
index 0258f8920e9..7b2a2efab23 100644
--- a/spec/factories.rb
+++ b/spec/factories.rb
@@ -1,21 +1,3 @@
-# Backwards compatibility with the old method
-def Factory(type, *args)
- FactoryGirl.create(type, *args)
-end
-
-module Factory
- def self.create(type, *args)
- FactoryGirl.create(type, *args)
- end
-
- def self.new(type, *args)
- FactoryGirl.build(type, *args)
- end
- def self.attributes(type, *args)
- FactoryGirl.attributes_for(type, *args)
- end
-end
-
FactoryGirl.define do
sequence :sentence, aliases: [:title, :content] do
Faker::Lorem.sentence