22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa commit: FactoryGirl.create(:commit, commit_oid: commit_oid),
22f8827cd8892a298f9764ce862db6867307828dEugen KuksaGiven(/^I have uploaded a(.*) ontology$/) do |type|
22f8827cd8892a298f9764ce862db6867307828dEugen KuksaGiven(/^Children of the ontology have been deleted$/i) do
22f8827cd8892a298f9764ce862db6867307828dEugen KuksaGiven(/^Children of the ontology have been restored$/i) do
22f8827cd8892a298f9764ce862db6867307828dEugen KuksaWhen(/^I visit the file view of the ontology$/i) do
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa # The request object does not contain a requested mime type, so we need to
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa # stub this.
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa visit repository_tree_path(@ontology.repository, path: @ontology.path)
22f8827cd8892a298f9764ce862db6867307828dEugen KuksaThen(/^I should see all the file's ontologies$/i) do
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa # The file defines the DistributedOntolgy and its children.
22f8827cd8892a298f9764ce862db6867307828dEugen Kuksa expect(page.find('#ontology-list-headline').text).to match(/\s+#{number}\s+/)