Cross Reference: theorem_factory.rb
xref
: /
ontohub
/
spec
/
factories
/
theorem_factory.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
theorem_factory.rb revision 5a102b3c56d4ac75632c7e9244ee0ce5bdbbf13a
2867
N/A
FactoryGirl.define
do
2867
N/A
factory
:
theorem
do
|
theorem
|
2867
N/A
name
{
generate
:
sentence_name
}
2867
N/A
text
{
Faker
::
Lorem.sentence
}
2867
N/A
proof_status
{
create
:
proof_status_open
}
2867
N/A
state
{
'not_started_yet'
}
2867
N/A
2867
N/A
theorem.after
(:
build
)
do
|
theorem
|
2867
N/A
if
!
theorem.ontology
2867
N/A
parent_onto
=
create
:
distributed_ontology
, :
with_versioned_children
2867
N/A
theorem.ontology
=
parent_onto.children.first
2867
N/A
end
2867
N/A
2867
N/A
end
2867
N/A
end
2867
N/A
end
2867
N/A