/ontohub/spec/models/ |
H A D | action_spec.rb | 5 let(:action) { create :action } 6 let(:target) { action.action_started_at + action.eta } 9 expect(action.eta(action.created_at).to_i). 10 to eq(action.initial_eta) 14 expect(action.eta(target - 1).to_i).to eq(1) 18 expect(action.eta(target + 5.minutes)).to eq(0) 21 it 'should return initial eta when action ha [all...] |
/ontohub/lib/ |
H A D | action_worker.rb | 5 action = Action.find(action_id) 6 action.register_start_of_action 7 action.resource = klass.constantize.send(method, *args) 8 action.save!
|
/ontohub/spec/routing/admin/ |
H A D | users_routing_spec.rb | 6 controller: :'admin/users', action: :index) 11 controller: :'admin/users', action: :create) 16 controller: :'admin/users', action: :new) 21 controller: :'admin/users', action: :edit, id: 123) 26 controller: :'admin/users', action: :show, id: 123) 31 controller: :'admin/users', action: :update, id: 123) 36 controller: :'admin/users', action: :destroy, id: 123)
|
H A D | teams_routing_spec.rb | 6 controller: :'admin/teams', action: :index)
|
/ontohub/spec/routing/ |
H A D | repository_directories_routing_spec.rb | 5 to(controller: 'repository_directories', action: :create, repository_id: 'repopath' ) }
|
H A D | comments_routing_spec.rb | 6 to(action: :index, ontology_id: 'ontology_id', repository_id: 'repository_id') } 8 to(action: :create, ontology_id: 'ontology_id', repository_id: 'repository_id') }
|
H A D | url_maps_routing_spec.rb | 4 it { should route(:get, 'repositories/repopath/url_maps' ).to(repository_id: 'repopath', action: :index ) } 5 it { should route(:post, 'repositories/repopath/url_maps' ).to(repository_id: 'repopath', action: :create ) } 6 it { should route(:get, 'repositories/repopath/url_maps/new' ).to(repository_id: 'repopath', action: :new ) } 7 it { should route(:get, 'repositories/repopath/url_maps/2/edit').to(repository_id: 'repopath', id: 2, action: :edit ) } 8 it { should route(:put, 'repositories/repopath/url_maps/2' ).to(repository_id: 'repopath', id: 2, action: :update ) } 9 it { should route(:delete, 'repositories/repopath/url_maps/2' ).to(repository_id: 'repopath', id: 2, action: :destroy ) }
|
H A D | language_adjoint_routing_spec.rb | 6 controller: :language_adjoints, action: :index) 11 controller: :language_adjoints, action: :create) 16 controller: :language_adjoints, action: :new) 21 controller: :language_adjoints, action: :edit, id: 123) 26 controller: :language_adjoints, action: :show, id: 123) 31 controller: :language_adjoints, action: :update, id: 123) 36 controller: :language_adjoints, action: :destroy, id: 123)
|
H A D | language_mappings_routing_spec.rb | 6 controller: :language_mappings, action: :index) 11 controller: :language_mappings, action: :create) 16 controller: :language_mappings, action: :new) 21 controller: :language_mappings, action: :edit, id: 123) 26 controller: :language_mappings, action: :show, id: 123) 31 controller: :language_mappings, action: :update, id: 123) 36 controller: :language_mappings, action: :destroy, id: 123)
|
H A D | logic_adjoint_routing_spec.rb | 6 controller: :logic_adjoints, action: :index) 11 controller: :logic_adjoints, action: :create) 16 controller: :logic_adjoints, action: :new) 21 controller: :logic_adjoints, action: :edit, id: 123) 26 controller: :logic_adjoints, action: :show, id: 123) 31 controller: :logic_adjoints, action: :update, id: 123) 36 controller: :logic_adjoints, action: :destroy, id: 123)
|
H A D | ontologies_routing_spec.rb | 6 repository_id: 'repopath', action: :retry_failed) 11 repository_id: 'repopath', action: :retry_failed, id: 'id') 16 controller: :ontologies, action: :index, 22 controller: :ontologies, action: :edit, 28 controller: :ontologies, action: :show, 34 controller: :ontologies, action: :update, 40 controller: :ontologies, action: :destroy,
|
H A D | repositories_routing_spec.rb | 6 controller: :repositories, action: :index) 11 controller: :repositories, action: :create) 16 controller: :repositories, action: :new) 21 controller: :repositories, action: :edit, id: 'my_repo') 26 controller: :repositories, action: :show, id: 'id') 31 controller: :repositories, action: :update, id: 'my_repo') 36 controller: :repositories, action: :destroy, id: 'my_repo')
|
H A D | serializations_routing_spec.rb | 6 controller: :serializations, action: :index) 11 controller: :serializations, action: :create) 16 controller: :serializations, action: :new) 21 controller: :serializations, action: :edit, id: 123) 26 controller: :serializations, action: :show, id: 123) 31 controller: :serializations, action: :update, id: 123) 36 controller: :serializations, action: :destroy, id: 123)
|
H A D | teams_routing_spec.rb | 6 controller: :teams, action: :index) 11 controller: :teams, action: :create) 16 controller: :teams, action: :new) 21 controller: :teams, action: :edit, id: 123) 26 controller: :teams, action: :show, id: 123) 31 controller: :teams, action: :update, id: 123) 36 controller: :teams, action: :destroy, id: 123)
|
H A D | logic_mappings_routing_spec.rb | 6 controller: :logic_mappings, action: :index) 11 controller: :logic_mappings, action: :create) 16 controller: :logic_mappings, action: :new) 21 controller: :logic_mappings, action: :edit, id: 'my_logic_mapping') 26 controller: :logic_mappings, action: :show, id: 'my_logic_mapping') 31 controller: :logic_mappings, action: :update, id: 'my_logic_mapping') 36 controller: :logic_mappings, action: :destroy, id: 'my_logic_mapping')
|
H A D | oops_requests_routing_spec.rb | 7 controller: :oops_requests, action: :show, 14 controller: :oops_requests, action: :create,
|
H A D | files_routing_spec.rb | 14 it { should route(:get, 'repopath' ).to(repository_id: 'repopath', controller: :files, action: :show ) } 15 it { should route(:get, 'repopath/some/path' ).to(repository_id: 'repopath', controller: :files, action: :show, path: 'some/path') } 16 it { should route(:get, 'repositories/repopath/files/new' ).to(repository_id: 'repopath', controller: :files, action: :new ) } 17 it { should route(:post, 'repositories/repopath/files' ).to(repository_id: 'repopath', controller: :files, action: :create ) } 18 it { should route(:get, 'repositories/repopath/12ab/action' ).to(repository_id: 'repopath', controller: :files, action: :action, ref: '12ab' ) } 19 it { should route(:get, 'repositories/repopath/12ab/files/some/path' ).to(repository_id: 'repopath', controller: :files, action: :show, ref: '12ab', path: 'some/path' ) } 20 it { should route(:delete, 'repopath/some/path' ).to(repository_id: 'repopath', controller: :files, action: :destroy, path: 'some/path') }
|
H A D | autocomplete_routing_spec.rb | 6 to(controller: :autocomplete, action: :index)
|
H A D | diffs_routing_spec.rb | 6 controller: :diffs, action: :show,
|
H A D | graphs_routing_spec.rb | 6 controller: :graphs, action: :index, logic_id: 'id')
|
H A D | history_routing_spec.rb | 4 it { should route(:get, 'repositories/repopath/master/history').to(repository_id: 'repopath', controller: :history, action: :show, ref: 'master' ) }
|
H A D | home_routing_spec.rb | 4 it { should route(:get, '/').to(controller: :home, action: :index) }
|
H A D | keys_routing_spec.rb | 4 it { should route(:get, "keys").to(:controller=> :keys, :action => :index) }
|
/ontohub/spec/factories/ |
H A D | action_factory.rb | 2 factory(:action) do
|
/ontohub/app/controllers/ |
H A D | path_helpers.rb | 14 action = args[:action] || :show 15 if !in_ref_path? && action == :show && !args[:exact_commit] 18 repository_ref_path repository_id: repository, ref: args[:ref], action: action, path: args[:path]
|