Cross Reference: hets_instance_factory_factory.rb
xref
: /
ontohub
/
spec
/
factories
/
hets_instance_factory_factory.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
FactoryGirl.define
do
sequence
:
uri
do
|n|
"gopher://
host
/
ontology
/#{n}"
end
sequence
:
hets_uri
do
|n|
"
http://localhost
:#{8000 + (n % 1000)}"
end
sequence
:
hets_instance_name
do
|n|
"hets_instance-#{n}"
end
factory
:
hets_instance
,
aliases
: [:
local_hets_instance
]
do
name
{
FactoryGirl.generate
:
hets_instance_name
}
uri
{
FactoryGirl.generate
:
hets_uri
}
state
{
'free'
}
queue_size
{
0
}
end
end