Cross Reference:
xref
: /
ontohub
/
test
/
unit
/
ontology_test.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
ontology_test.rb revision 7ef46b1adca473f664769a44a378e9f08385d3a0
76b43e4417bab52e913da39b5f5bc2a130d3f149
Timo Sirainen
require
'test_helper'
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834
Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834
Timo Sirainen
class
OntologyTest
<
ActiveSupport
::
TestCase
8aacc9e7c84f8376822823ec98c2f551d4919b2e
Timo Sirainen
should
belong_to
:
logic
16f816d3f3c32ae3351834253f52ddd0212bcbf3
Timo Sirainen
should
have_many
:
versions
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834
Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834
Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834
Timo Sirainen
context
'ontology instance'
do
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834
Timo Sirainen
setup
do
463e82bdf0e990f4f2252d2b53ea23a5abe5883c
Timo Sirainen
@
ontology
=
Factory
:
ontology
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834
Timo Sirainen
end
d41573018e85896ec836d897fd554e87126147f5
Timo Sirainen
d41573018e85896ec836d897fd554e87126147f5
Timo Sirainen
should
'have to_s'
do
d41573018e85896ec836d897fd554e87126147f5
Timo Sirainen
assert_equal
@
ontology.uri
, @
ontology.to
_s
d41573018e85896ec836d897fd554e87126147f5
Timo Sirainen
end
945631faab2bf1aed8d95a1fd0c317a9ce153725
Timo Sirainen
end
945631faab2bf1aed8d95a1fd0c317a9ce153725
Timo Sirainen
2c677e9d339bc91d5b54376ba2986f71476c06ab
Timo Sirainen
end
945631faab2bf1aed8d95a1fd0c317a9ce153725
Timo Sirainen