Lines Matching refs:ontology
1 def build_version_for(ontology)
3 ontology.versions.build(
6 basepath: File.basepath(ontology.path),
7 file_extension: File.extname(ontology.path),
12 Given(/^I have uploaded a(.*) ontology$/) do |type|
16 And there is a#{type} ontology
17 And I have permissions to edit the ontology
18 And there is an ontology file
22 Given(/^Children of the ontology have been deleted$/i) do
23 @deleted_child = @ontology.children.last
27 build_version_for(@ontology).save!
28 @ontology.children.each do |child|
33 Given(/^Children of the ontology have been restored$/i) do
37 build_version_for(@ontology).save!
38 @ontology.children.each do |child|
43 When(/^I visit the file view of the ontology$/i) do
49 visit repository_tree_path(@ontology.repository, path: @ontology.path)
54 number = 1 + @ontology.children.count
56 expect(page.find('#ontology-list-headline').text).to match(/\s+#{number}\s+/)
57 expect(page).to have_selector('ul.ontology-list > li', count: number)