/ontohub/spec/factories/ |
H A D | c_edge_factory.rb | 3 parent_id {FactoryGirl.create(:category).id} 4 child_id {FactoryGirl.create(:category).id}
|
H A D | team_factory.rb | 7 user = FactoryGirl.create(:user, teams: [team]) 8 permission = FactoryGirl.create(:permission,
|
/ontohub/spec/routing/ |
H A D | repository_directories_routing_spec.rb | 5 to(controller: 'repository_directories', action: :create, repository_id: 'repopath' ) }
|
/ontohub/spec/controllers/ |
H A D | repository_directories_controller_spec.rb | 4 let(:user) { create :user } 5 let(:repository) { create :repository, user: user } 7 context 'not signed in: create' do 9 post :create, repository_directory: attributes_for(:repository_directory), repository_id: repository.to_param 20 context 'POST to create' do 25 post :create, repository_directory: { 34 context 'POST to create when it already exists' do 38 create :repository_directory, repository: repository, user: user, 43 post :create, repository_directory: {
|
H A D | symbols_controller_spec.rb | 7 let!(:user) { create :user } 8 let!(:logic) { create :logic, user: user } 9 let!(:ontology) { create :single_ontology, logic: logic } 24 let!(:user) { create :user } 25 let!(:logic) { create :logic, name: 'OWL', user: user } 26 let!(:ontology) { create :single_ontology, logic: logic }
|
H A D | ontology_types_controller_spec.rb | 5 let(:ontology_type) { create :ontology_type } 6 let!(:ontology) { create :ontology, ontology_type: ontology_type }
|
H A D | graphs_controller_spec.rb | 4 let(:source) { create(:logic) } 5 let(:target) { create(:logic) } 7 create(:logic_mapping, source: source, target: target) 22 let(:unlinked_source) { create(:logic) }
|
/ontohub/app/controllers/ |
H A D | language_adjoints_controller.rb | 8 def create method in class:LanguageAdjointsController
|
H A D | logic_adjoints_controller.rb | 8 def create method in class:LogicAdjointsController
|
H A D | keys_controller.rb | 7 actions :index, :new, :create, :destroy
|
H A D | language_mappings_controller.rb | 10 def create method in class:LanguageMappingsController
|
/ontohub/spec/helpers/ |
H A D | sentence_helper_spec.rb | 6 create :sentence,
|
/ontohub/app/controllers/users/ |
H A D | api_keys_controller.rb | 4 actions :create 7 def create method in class:Users
|
/ontohub/spec/models/ |
H A D | prover_spec.rb | 4 let(:prover) { create :prover }
|
H A D | category.rb | 11 edge = create(:c_edge) 13 onto1 = create(:ontology) 14 onto2 = create(:ontology) 37 @user = create :user 38 @ontology = create :single_ontology
|
H A D | permission_spec.rb | 20 let(:owner) { create :user } 21 let(:permission) { create(:permission, subject: owner, role: 'owner') } 35 other_permission = create(:permission, subject: owner, role: role) 42 let(:other_owner) { create(:user) } 44 create(:permission, subject: other_owner, role: 'owner', item: permission.item) 58 let(:repository) { create :repository } 61 let(:admin) { create :admin } 71 let(:permission) { create :permission, item: repository } 82 create :permission, 96 let(:team_user) { create [all...] |
H A D | repository_spec.rb | 10 let(:user) { create :user } 11 let(:repository) { create :repository, user: user } 37 let (:ontology) { create :ontology, repository: repository } 41 importing = create :ontology, repository: repository 42 create :mapping, target: importing, source: ontology, kind: 'import' 52 repository2 = create :repository 53 importing = create :ontology, repository: repository2 54 create :mapping, target: importing, source: ontology, kind: 'import' 88 let(:editor) { create :user } 89 let(:readers) { [create( [all...] |
H A D | ontology_version_spec.rb | 14 let(:user) { create :user } 17 let(:ontology_version) { create :ontology_version } 31 let(:repository) { create :repository, access: 'private_rw' } 32 let!(:ontology) { create :ontology, repository: repository } 33 let(:editor) { create :user } 34 let!(:permission) { create(:permission, subject: editor, role: 'editor',
|
H A D | theorem_spec.rb | 10 let(:theorem) { create :theorem } 41 let!(:url_maps) { [create(:url_map, repository: repository)] } 56 let(:open) { create :proof_status_open } 57 let(:success) { create :proof_status_success } 58 let(:unknown) { create :proof_status_unknown } 59 let(:disproven_on_subset) { create :proof_status_csas } 60 let(:disproven) { create :proof_status_csa } 61 let(:proven) { create :proof_status_proven } 62 let(:contr) { create :proof_status_contr} 66 proof_attempt = create [all...] |
H A D | ability_spec.rb | 6 let(:user){ create :user } # regular user 7 let(:owner){ create :user } # owner 10 let(:editor) { create :user } # editor 11 let(:reader) { create :user } # reader 12 let(:item) { create(:permission, subject: owner, role: 'owner').item } 15 create(:permission, subject: editor, role: 'editor', item: item) 16 create(:permission, subject: reader, role: 'reader', item: item) 22 it 'not be allowed: new, create' do 23 %i(new create).each do |perm| 42 it 'be allowed: new, create' d [all...] |
/ontohub/features/step_definitions/ |
H A D | repository_steps.rb | 1 When(/^I create a Repository with name "([^"]+)"$/) do |name| 2 @repository = FactoryGirl.create :repository, name: name 29 FactoryGirl.create :proof_attempt, :proven, theorem: @theorem
|
H A D | loc_id_routing_steps.rb | 5 FactoryGirl.create :single_ontology 7 FactoryGirl.create :distributed_ontology 9 FactoryGirl.create(:distributed_ontology, :with_children).children.first 11 FactoryGirl.create :symbol 13 source_ontology = FactoryGirl.create :single_ontology 14 target_ontology = FactoryGirl.create :single_ontology 15 FactoryGirl.create :mapping, source: source_ontology, 18 FactoryGirl.create :theorem 20 FactoryGirl.create :proof_attempt 22 FactoryGirl.create [all...] |
/ontohub/app/controllers/polymorphic_resource/ |
H A D | base.rb | 7 actions :index, :create 10 def create method in class:PolymorphicResource 11 authorize! :create, build_resource
|
/ontohub/app/fake_records/ |
H A D | fake_record.rb | 3 # - initialize(*args, &block) for create and build to work, and 4 # - save! for create and save to work. 15 def self.create(*args, &block) singleton method in class:FakeRecord 16 create!(*args, &block) 21 def self.create!(attributes = nil, options = {}, &block) singleton method in class:FakeRecord 23 attributes.collect { |attr| create!(attr, options, &block) }
|
/ontohub/spec/models/ontology_version/ |
H A D | provers_spec.rb | 5 let(:user) { create :user } 6 let(:repository) { create :repository }
|