Cross Reference: proof_attempt_factory.rb
xref
: /
ontohub
/
spec
/
factories
/
proof_attempt_factory.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
proof_attempt_factory.rb revision 4a7c98053955ca61668ed12b235ddf2fc9976142
FactoryGirl.define
do
factory
:
proof_attempt
do
tactic_script
{
'SPASS Tactic Script'
}
time_taken
{
rand
(
5
)
}
association
:
proof_status
,
factory
: :
proof_status_open
association
:
theorem
association
:
prover
association
:
proof_attempt_configuration
after
(:
build
)
do
|
proof_attempt
|
build
:
prover_output
,
proof_attempt
:
proof_attempt
end
after
(:
create
)
do
|
proof_attempt
|
proof_attempt.prover_output.save
!
end
end
end