ontology_test.rb revision 46dd7ca898be6d5dbdfda64fd90ce01e253c0878
require 'test_helper'
context 'Validations' do
end
end
end
context 'ontology instance' do
setup do
end
context 'with name' do
setup do
@name = "fooo"
@ontology.name = @name
end
should 'have to_s' do
end
end
context 'without name' do
setup do
@ontology.name = nil
end
should 'have to_s' do
end
end
end
context 'checking ordering of Ontology list' do
setup do
end
@done_state = "done"
end
should 'list done ontologies first' do
end
end
context 'determining active version of ontology' do
should 'be equal to current version, if there is only one' do
end
should 'be equal to current version, if current is done' do
end
should 'be equal to second to latest version , if current failed' do
@ontology.state = 'failed'
end
end
context 'correctness of non_current_active_version? question' do
setup do
@ontology.state = 'failed'
end
should "be true, iff the active version != current one according to user" do
end
should "be false, iff the active version == current one according to user" do
end
end
end