Cross Reference: commit_factory.rb
xref
: /
ontohub
/
spec
/
factories
/
commit_factory.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
FactoryGirl.define
do
factory
:
commit
do
association
:
repository
association
:
author
,
factory
: :
user
association
:
committer
,
factory
: :
user
association
:
pusher
,
factory
: :
user
commit_oid
{
SecureRandom.hex
(
20
)
}
after
(:
build
)
do
|
commit
|
commit.author
_name
=
commit.author.name
commit.committer
_name
=
commit.committer.name
commit.pusher
_name
=
commit.pusher.name
commit.author
_email
=
commit.author.email
commit.committer
_email
=
commit.committer.email
end
end
end