summaryrefslogtreecommitdiff
path: root/spec/factories.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-09-06 23:00:04 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-09-06 23:00:04 -0700
commit7c0a1068bf337cd169d11cca764af6b0ceb986b2 (patch)
treeef66ca41014f4653d7f73af3abd0bfa2c674f4fb /spec/factories.rb
parent687dc0dc58918bcc6b31a20db319de0e2fb28189 (diff)
parent9b9dd3f9bf62e8b116213012b766abcaef3e641e (diff)
downloadgitlab-ce-7c0a1068bf337cd169d11cca764af6b0ceb986b2.tar.gz
Merge pull request #1363 from AlexDenisov/api_create_project_fixes
API create project fixes
Diffstat (limited to 'spec/factories.rb')
-rw-r--r--spec/factories.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/factories.rb b/spec/factories.rb
index a8b3bc57d3f..92790a3fdb7 100644
--- a/spec/factories.rb
+++ b/spec/factories.rb
@@ -11,6 +11,9 @@ module Factory
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