Lines Matching refs:ontology_version
23 let(:ontology_version) { create :ontology_version }
24 let(:ontology) { ontology_version.ontology }
30 worker.perform(ontology_version.id)
31 ontology_version.reload
35 expect(ontology_version.state).to eq('failed')
39 expect(ontology_version.last_error).to include('The job reached the timeout limit')
49 let(:ontology_version) { create :ontology_version, state: 'done' }
51 it 'will not touch the state of the ontology_version' do
52 expect { worker.perform(ontology_version.id) }.
53 to_not change(ontology_version, :state)
57 expect { worker.perform(ontology_version.id) }.
64 let(:ontology_version) { create :ontology_version, state: 'failed' }
66 it 'will not touch the state of the ontology_version' do
67 expect { worker.perform(ontology_version.id) }.
68 to_not change(ontology_version, :state)
72 expect { worker.perform(ontology_version.id) }.