Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-04-13 12:25:42 +0300
committerRémy Coutable <remy@rymai.me>2016-04-13 17:07:04 +0300
commit02cfbf0db5dda8ca86f4811e5d5cb055a8cc5cfb (patch)
tree2b37a9ba2144bffc8544847eb157c4dc298c2c17 /spec/factories/commits.rb
parentbbf49ffca1c1be65567afa76961d176e57d40150 (diff)
Refactor and expose only Gitlab::UrlBuilder.build(record)
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/factories/commits.rb')
-rw-r--r--spec/factories/commits.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/factories/commits.rb b/spec/factories/commits.rb
new file mode 100644
index 00000000000..ac6eb0a7897
--- /dev/null
+++ b/spec/factories/commits.rb
@@ -0,0 +1,12 @@
+require_relative '../support/repo_helpers'
+
+FactoryGirl.define do
+ factory :commit do
+ git_commit RepoHelpers.sample_commit
+ project factory: :empty_project
+
+ initialize_with do
+ new(git_commit, project)
+ end
+ end
+end