Cross Reference:
xref
: /
ontohub
/
test
/
factories
/
ontology_version.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
ontology_version.rb revision fdb4faa74390ccf97fa41ddd8517217cbe1e8259
FactoryGirl.define
do
factory
:
ontology_version
do
association
:
ontology
association
:
user
basepath
{
SecureRandom.hex
(
10
)
}
file_extension
{
'.owl'
}
commit_oid
{
SecureRandom.hex
(
20
)
}
state_updated_at
{
Time.now
}
after
(:
create
)
do
|
version
|
version.ontology.reload
end
after
(:
build
)
do
|
version
|
version.do
_not_parse
!
end
end
factory
:
ontology_version_with_file
, :
parent
=> :
ontology_version
do
raw_file
{
File.open
"
test
/
fixtures
/
ontologies
/
owl
/
pizza.owl
"
}
end
end