Searched refs:create (Results 1 - 25 of 225) sorted by relevance

123456789

/ontohub/spec/factories/
H A Dc_edge_factory.rb3 parent_id {FactoryGirl.create(:category).id}
4 child_id {FactoryGirl.create(:category).id}
H A Dteam_factory.rb7 user = FactoryGirl.create(:user, teams: [team])
8 permission = FactoryGirl.create(:permission,
/ontohub/spec/routing/
H A Drepository_directories_routing_spec.rb5 to(controller: 'repository_directories', action: :create, repository_id: 'repopath' ) }
/ontohub/spec/controllers/
H A Drepository_directories_controller_spec.rb4 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 Dsymbols_controller_spec.rb7 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 Dontology_types_controller_spec.rb5 let(:ontology_type) { create :ontology_type }
6 let!(:ontology) { create :ontology, ontology_type: ontology_type }
H A Dgraphs_controller_spec.rb4 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 Dlanguage_adjoints_controller.rb8 def create method in class:LanguageAdjointsController
H A Dlogic_adjoints_controller.rb8 def create method in class:LogicAdjointsController
H A Dkeys_controller.rb7 actions :index, :new, :create, :destroy
H A Dlanguage_mappings_controller.rb10 def create method in class:LanguageMappingsController
/ontohub/spec/helpers/
H A Dsentence_helper_spec.rb6 create :sentence,
/ontohub/app/controllers/users/
H A Dapi_keys_controller.rb4 actions :create
7 def create method in class:Users
/ontohub/spec/models/
H A Dprover_spec.rb4 let(:prover) { create :prover }
H A Dcategory.rb11 edge = create(:c_edge)
13 onto1 = create(:ontology)
14 onto2 = create(:ontology)
37 @user = create :user
38 @ontology = create :single_ontology
H A Dpermission_spec.rb20 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 Drepository_spec.rb10 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 Dontology_version_spec.rb14 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 Dtheorem_spec.rb10 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 Dability_spec.rb6 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 Drepository_steps.rb1 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 Dloc_id_routing_steps.rb5 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 Dbase.rb7 actions :index, :create
10 def create method in class:PolymorphicResource
11 authorize! :create, build_resource
/ontohub/app/fake_records/
H A Dfake_record.rb3 # - 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 Dprovers_spec.rb5 let(:user) { create :user }
6 let(:repository) { create :repository }

Completed in 70 milliseconds

123456789