ontologies_controller_test.rb revision f458e516c452c779efc7fc8949edfc2092d3fb82
require 'test_helper'
should route(:get, "/repositories/path/ontologies/bulk").to(:controller=> :ontologies, :action => :bulk, repository_id: 'path')
context 'Ontology Instance' do
setup do
2.times { FactoryGirl.create :entity, :ontology => @ontology }
end
setup do
end
should render_template 'ontologies/_ontology'
end
setup do
@search = @ontology.name
end
should render_template 'ontologies/_ontology'
end
end
setup do
end
setup do
end
end
setup do
end
should respond_with :redirect
end
setup do
end
should respond_with :redirect
end
end
setup do
end
setup do
end
end
setup do
end
end
setup do
ontology: {
source_url: ''
}],
}
end
end
setup do
ontology: {
source_url: ''
}],
}
end
end
end
setup do
post :create, repository_id: @repository.path, :ontology => {
}],
}
end
should respond_with :redirect
end
setup do
ontology: {
}],
}
end
end
end
end
end
setup do
end
setup do
end
end
setup do
name: 'foo bar'
end
end
end
end
end