diff --git a/app/models/application_record.rb b/app/models/application_record.rb index 8c4e704ff29727c72354d0466dcc9ff534667c4e..0fe69de516019d9ac6cefa81b45c6467b1f512e8 100644 --- a/app/models/application_record.rb +++ b/app/models/application_record.rb @@ -27,6 +27,7 @@ class ApplicationRecord < ActiveRecord::Base # https://github.com/rails/rails/blob/b961af3345fe2f9e492ba1e5424c2ceb75ac6ead/actiontext/lib/action_text/attribute.rb#L4 # https://github.com/rails/rails/blob/b961af3345fe2f9e492ba1e5424c2ceb75ac6ead/actiontext/lib/action_text/content.rb#L121 def self.has_summernote(name) + # https://dalibornasevic.com/posts/16-ruby-class_eval-__file__-and-__line__-arguments class_eval <<-CODE, __FILE__, __LINE__ + 1 serialize :#{name}, ActionText::Content CODE diff --git a/test/fixtures/.keep b/test/fixtures/.keep new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/test/fixtures/communication/website/github_files.yml b/test/fixtures/communication/website/github_files.yml deleted file mode 100644 index f62b00bd44515d0bd25111210b6ec85cdedca846..0000000000000000000000000000000000000000 --- a/test/fixtures/communication/website/github_files.yml +++ /dev/null @@ -1,30 +0,0 @@ -# == Schema Information -# -# Table name: communication_website_github_files -# -# id :uuid not null, primary key -# about_type :string not null -# github_path :string -# manifest_identifier :string -# created_at :datetime not null -# updated_at :datetime not null -# about_id :uuid not null -# website_id :uuid not null -# -# Indexes -# -# index_communication_website_github_files_on_about (about_type,about_id) -# index_communication_website_github_files_on_website_id (website_id) -# -# Foreign Keys -# -# fk_rails_... (website_id => communication_websites.id) -# - -one: - github_path: MyString - about: one - -two: - github_path: MyString - about: two diff --git a/test/fixtures/education/program/members.yml b/test/fixtures/education/program/members.yml deleted file mode 100644 index ddb1da3fb54bb6a9f75f56328c46965f9b3fc4de..0000000000000000000000000000000000000000 --- a/test/fixtures/education/program/members.yml +++ /dev/null @@ -1,31 +0,0 @@ -# == Schema Information -# -# Table name: education_program_members -# -# id :uuid not null, primary key -# role :string -# created_at :datetime not null -# updated_at :datetime not null -# member_id :uuid not null -# program_id :uuid not null -# -# Indexes -# -# index_education_program_members_on_member_id (member_id) -# index_education_program_members_on_program_id (program_id) -# -# Foreign Keys -# -# fk_rails_... (member_id => university_people.id) -# fk_rails_... (program_id => education_programs.id) -# - -one: - role: MyString - member: one - program: one - -two: - role: MyString - member: two - program: two diff --git a/test/fixtures/education/program/role/people.yml b/test/fixtures/education/program/role/people.yml deleted file mode 100644 index 50a25e47a89ea4b3a4cda4a15f37db6331820438..0000000000000000000000000000000000000000 --- a/test/fixtures/education/program/role/people.yml +++ /dev/null @@ -1,31 +0,0 @@ -# == Schema Information -# -# Table name: education_program_role_people -# -# id :uuid not null, primary key -# position :integer -# created_at :datetime not null -# updated_at :datetime not null -# person_id :uuid not null -# role_id :uuid not null -# -# Indexes -# -# index_education_program_role_people_on_person_id (person_id) -# index_education_program_role_people_on_role_id (role_id) -# -# Foreign Keys -# -# fk_rails_... (person_id => university_people.id) -# fk_rails_... (role_id => education_program_roles.id) -# - -one: - position: 1 - person: one - role: one - -two: - position: 1 - person: two - role: two diff --git a/test/fixtures/education/program/roles.yml b/test/fixtures/education/program/roles.yml deleted file mode 100644 index cce31b11fc8609374f9656de9c9803efd0d48ec9..0000000000000000000000000000000000000000 --- a/test/fixtures/education/program/roles.yml +++ /dev/null @@ -1,34 +0,0 @@ -# == Schema Information -# -# Table name: education_program_roles -# -# id :uuid not null, primary key -# position :integer -# title :string -# created_at :datetime not null -# updated_at :datetime not null -# program_id :uuid not null -# university_id :uuid not null -# -# Indexes -# -# index_education_program_roles_on_program_id (program_id) -# index_education_program_roles_on_university_id (university_id) -# -# Foreign Keys -# -# fk_rails_... (program_id => education_programs.id) -# fk_rails_... (university_id => universities.id) -# - -one: - title: MyString - position: 1 - program: one - university: one - -two: - title: MyString - position: 1 - program: two - university: two diff --git a/test/fixtures/education/program/teachers.yml b/test/fixtures/education/program/teachers.yml deleted file mode 100644 index 1029c55daa2461be96d5eea5193efb06bea66597..0000000000000000000000000000000000000000 --- a/test/fixtures/education/program/teachers.yml +++ /dev/null @@ -1,31 +0,0 @@ -# == Schema Information -# -# Table name: education_program_teachers -# -# id :uuid not null, primary key -# description :text -# created_at :datetime not null -# updated_at :datetime not null -# person_id :uuid not null -# program_id :uuid not null -# -# Indexes -# -# index_education_program_teachers_on_person_id (person_id) -# index_education_program_teachers_on_program_id (program_id) -# -# Foreign Keys -# -# fk_rails_... (person_id => university_people.id) -# fk_rails_... (program_id => education_programs.id) -# - -one: - description: MyText - program: one - person: one - -two: - description: MyText - program: two - person: two diff --git a/test/fixtures/education/school/administrators.yml b/test/fixtures/education/school/administrators.yml deleted file mode 100644 index 2e5542621d8a3cb262c0eb722b87255fc495dc53..0000000000000000000000000000000000000000 --- a/test/fixtures/education/school/administrators.yml +++ /dev/null @@ -1,31 +0,0 @@ -# == Schema Information -# -# Table name: education_school_administrators -# -# id :uuid not null, primary key -# description :text -# created_at :datetime not null -# updated_at :datetime not null -# person_id :uuid not null -# school_id :uuid not null -# -# Indexes -# -# index_education_school_administrators_on_person_id (person_id) -# index_education_school_administrators_on_school_id (school_id) -# -# Foreign Keys -# -# fk_rails_... (person_id => university_people.id) -# fk_rails_... (school_id => education_schools.id) -# - -one: - description: MyText - school: one - person: one - -two: - description: MyText - school: two - person: two diff --git a/test/fixtures/research/laboratories.yml b/test/fixtures/research/laboratories.yml deleted file mode 100644 index 39a78ada0a853b429337db92bbbbdfb694263b61..0000000000000000000000000000000000000000 --- a/test/fixtures/research/laboratories.yml +++ /dev/null @@ -1,38 +0,0 @@ -# == Schema Information -# -# Table name: research_laboratories -# -# id :uuid not null, primary key -# address :string -# city :string -# country :string -# name :string -# zipcode :string -# created_at :datetime not null -# updated_at :datetime not null -# university_id :uuid not null, indexed -# -# Indexes -# -# index_research_laboratories_on_university_id (university_id) -# -# Foreign Keys -# -# fk_rails_f61d27545f (university_id => universities.id) -# - -one: - university: one - name: MyString - address: MyString - zipcode: MyString - city: MyString - country: MyString - -two: - university: two - name: MyString - address: MyString - zipcode: MyString - city: MyString - country: MyString diff --git a/test/fixtures/research/laboratory/axes.yml b/test/fixtures/research/laboratory/axes.yml deleted file mode 100644 index 51a668b6624c3851ba74e0016f84ffd54a5f5247..0000000000000000000000000000000000000000 --- a/test/fixtures/research/laboratory/axes.yml +++ /dev/null @@ -1,38 +0,0 @@ -# == Schema Information -# -# Table name: research_laboratory_axes -# -# id :uuid not null, primary key -# description :text -# name :string -# position :integer -# short_name :string -# created_at :datetime not null -# updated_at :datetime not null -# research_laboratory_id :uuid not null, indexed -# university_id :uuid not null, indexed -# -# Indexes -# -# index_research_laboratory_axes_on_research_laboratory_id (research_laboratory_id) -# index_research_laboratory_axes_on_university_id (university_id) -# -# Foreign Keys -# -# fk_rails_ad2cb9a562 (research_laboratory_id => research_laboratories.id) -# fk_rails_d334f832b4 (university_id => universities.id) -# - -one: - university: one - research_laboratory: one - name: MyString - description: MyText - position: 1 - -two: - university: two - research_laboratory: two - name: MyString - description: MyText - position: 1 diff --git a/test/fixtures/research/theses.yml b/test/fixtures/research/theses.yml deleted file mode 100644 index c7cd5783ba0e9d8cbe0ae07ef980725ad038a5d9..0000000000000000000000000000000000000000 --- a/test/fixtures/research/theses.yml +++ /dev/null @@ -1,53 +0,0 @@ -# == Schema Information -# -# Table name: research_theses -# -# id :uuid not null, primary key -# abstract :text -# completed :boolean default(FALSE) -# completed_at :date -# started_at :date -# title :string -# created_at :datetime not null -# updated_at :datetime not null -# author_id :uuid not null, indexed -# director_id :uuid not null, indexed -# research_laboratory_id :uuid not null, indexed -# university_id :uuid not null, indexed -# -# Indexes -# -# index_research_theses_on_author_id (author_id) -# index_research_theses_on_director_id (director_id) -# index_research_theses_on_research_laboratory_id (research_laboratory_id) -# index_research_theses_on_university_id (university_id) -# -# Foreign Keys -# -# fk_rails_1e42972d90 (author_id => university_people.id) -# fk_rails_44b431f9e5 (university_id => universities.id) -# fk_rails_8d223fdbaf (director_id => university_people.id) -# fk_rails_b3380066dc (research_laboratory_id => research_laboratories.id) -# - -one: - university: one - research_laboratory: one - author: one - director: one - title: MyString - abstract: MyText - started_at: 2022-01-20 - completed: false - completed_at: 2022-01-20 - -two: - university: two - research_laboratory: two - author: two - director: two - title: MyString - abstract: MyText - started_at: 2022-01-20 - completed: false - completed_at: 2022-01-20 diff --git a/test/fixtures/university/person/involvements.yml b/test/fixtures/university/person/involvements.yml deleted file mode 100644 index 3673a2c923f39dd6b3ed8db53e4d4ef0cf68fe28..0000000000000000000000000000000000000000 --- a/test/fixtures/university/person/involvements.yml +++ /dev/null @@ -1,42 +0,0 @@ -# == Schema Information -# -# Table name: university_person_involvements -# -# id :uuid not null, primary key -# description :text -# kind :integer -# position :integer -# target_type :string not null, indexed => [target_id] -# created_at :datetime not null -# updated_at :datetime not null -# person_id :uuid not null, indexed -# target_id :uuid not null, indexed => [target_type] -# university_id :uuid not null, indexed -# -# Indexes -# -# index_university_person_involvements_on_person_id (person_id) -# index_university_person_involvements_on_target (target_type,target_id) -# index_university_person_involvements_on_university_id (university_id) -# -# Foreign Keys -# -# fk_rails_407e2a671c (person_id => university_people.id) -# fk_rails_5c704f6338 (university_id => universities.id) -# - -one: - university: one - person: one - kind: 1 - target: one - description: MyText - position: 1 - -two: - university: two - person: two - kind: 1 - target: two - description: MyText - position: 1 diff --git a/test/fixtures/university/roles.yml b/test/fixtures/university/roles.yml deleted file mode 100644 index d3001160f12234a6ee6620ee1a383824724d2dcf..0000000000000000000000000000000000000000 --- a/test/fixtures/university/roles.yml +++ /dev/null @@ -1,34 +0,0 @@ -# == Schema Information -# -# Table name: university_roles -# -# id :uuid not null, primary key -# description :text -# position :integer -# target_type :string indexed => [target_id] -# created_at :datetime not null -# updated_at :datetime not null -# target_id :uuid indexed => [target_type] -# university_id :uuid not null, indexed -# -# Indexes -# -# index_university_roles_on_target (target_type,target_id) -# index_university_roles_on_university_id (university_id) -# -# Foreign Keys -# -# fk_rails_8e52293a38 (university_id => universities.id) -# - -one: - university: one - target: one - description: MyText - position: 1 - -two: - university: two - target: two - description: MyText - position: 1 diff --git a/test/models/communication/website/github_file_test.rb b/test/models/communication/website/github_file_test.rb deleted file mode 100644 index 72374f59d14999ee55f3516ed13be3eefa558f26..0000000000000000000000000000000000000000 --- a/test/models/communication/website/github_file_test.rb +++ /dev/null @@ -1,29 +0,0 @@ -# == Schema Information -# -# Table name: communication_website_github_files -# -# id :uuid not null, primary key -# about_type :string not null -# github_path :string -# manifest_identifier :string -# created_at :datetime not null -# updated_at :datetime not null -# about_id :uuid not null -# website_id :uuid not null -# -# Indexes -# -# index_communication_website_github_files_on_about (about_type,about_id) -# index_communication_website_github_files_on_website_id (website_id) -# -# Foreign Keys -# -# fk_rails_... (website_id => communication_websites.id) -# -require "test_helper" - -class Communication::Website::GithubFileTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/test/models/education/program/member_test.rb b/test/models/education/program/member_test.rb deleted file mode 100644 index 824cc97edbb20e766f3a0e310082b2d315322535..0000000000000000000000000000000000000000 --- a/test/models/education/program/member_test.rb +++ /dev/null @@ -1,28 +0,0 @@ -# == Schema Information -# -# Table name: education_program_members -# -# id :uuid not null, primary key -# role :string -# created_at :datetime not null -# updated_at :datetime not null -# member_id :uuid not null -# program_id :uuid not null -# -# Indexes -# -# index_education_program_members_on_member_id (member_id) -# index_education_program_members_on_program_id (program_id) -# -# Foreign Keys -# -# fk_rails_... (member_id => university_people.id) -# fk_rails_... (program_id => education_programs.id) -# -require "test_helper" - -class Education::Program::MemberTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/test/models/education/program/role/person_test.rb b/test/models/education/program/role/person_test.rb deleted file mode 100644 index a257dd899084f03b9b60d8a932b174c47621aed8..0000000000000000000000000000000000000000 --- a/test/models/education/program/role/person_test.rb +++ /dev/null @@ -1,28 +0,0 @@ -# == Schema Information -# -# Table name: education_program_role_people -# -# id :uuid not null, primary key -# position :integer -# created_at :datetime not null -# updated_at :datetime not null -# person_id :uuid not null -# role_id :uuid not null -# -# Indexes -# -# index_education_program_role_people_on_person_id (person_id) -# index_education_program_role_people_on_role_id (role_id) -# -# Foreign Keys -# -# fk_rails_... (person_id => university_people.id) -# fk_rails_... (role_id => education_program_roles.id) -# -require "test_helper" - -class Education::Program::Role::PersonTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/test/models/education/program/role_test.rb b/test/models/education/program/role_test.rb deleted file mode 100644 index 2b9d81195b5c96bec871bf57ea9e4b6caab9b05a..0000000000000000000000000000000000000000 --- a/test/models/education/program/role_test.rb +++ /dev/null @@ -1,29 +0,0 @@ -# == Schema Information -# -# Table name: education_program_roles -# -# id :uuid not null, primary key -# position :integer -# title :string -# created_at :datetime not null -# updated_at :datetime not null -# program_id :uuid not null -# university_id :uuid not null -# -# Indexes -# -# index_education_program_roles_on_program_id (program_id) -# index_education_program_roles_on_university_id (university_id) -# -# Foreign Keys -# -# fk_rails_... (program_id => education_programs.id) -# fk_rails_... (university_id => universities.id) -# -require "test_helper" - -class Education::Program::RoleTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/test/models/education/program/teacher_test.rb b/test/models/education/program/teacher_test.rb deleted file mode 100644 index 7806b4fcbda0ece1feda5af3d5b0edbfd585e95d..0000000000000000000000000000000000000000 --- a/test/models/education/program/teacher_test.rb +++ /dev/null @@ -1,28 +0,0 @@ -# == Schema Information -# -# Table name: education_program_teachers -# -# id :uuid not null, primary key -# description :text -# created_at :datetime not null -# updated_at :datetime not null -# person_id :uuid not null -# program_id :uuid not null -# -# Indexes -# -# index_education_program_teachers_on_person_id (person_id) -# index_education_program_teachers_on_program_id (program_id) -# -# Foreign Keys -# -# fk_rails_... (person_id => university_people.id) -# fk_rails_... (program_id => education_programs.id) -# -require "test_helper" - -class Education::Program::TeacherTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/test/models/education/school/administrator_test.rb b/test/models/education/school/administrator_test.rb deleted file mode 100644 index bdf223d6db7b2ae4bf2e3898d934c14310cc7024..0000000000000000000000000000000000000000 --- a/test/models/education/school/administrator_test.rb +++ /dev/null @@ -1,28 +0,0 @@ -# == Schema Information -# -# Table name: education_school_administrators -# -# id :uuid not null, primary key -# description :text -# created_at :datetime not null -# updated_at :datetime not null -# person_id :uuid not null -# school_id :uuid not null -# -# Indexes -# -# index_education_school_administrators_on_person_id (person_id) -# index_education_school_administrators_on_school_id (school_id) -# -# Foreign Keys -# -# fk_rails_... (person_id => university_people.id) -# fk_rails_... (school_id => education_schools.id) -# -require "test_helper" - -class Education::School::AdministratorTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/test/models/research/laboratory/axis_test.rb b/test/models/research/laboratory/axis_test.rb deleted file mode 100644 index 909fb0dd87343a26630336b64b75ee32b03c67cf..0000000000000000000000000000000000000000 --- a/test/models/research/laboratory/axis_test.rb +++ /dev/null @@ -1,31 +0,0 @@ -# == Schema Information -# -# Table name: research_laboratory_axes -# -# id :uuid not null, primary key -# description :text -# name :string -# position :integer -# short_name :string -# created_at :datetime not null -# updated_at :datetime not null -# research_laboratory_id :uuid not null, indexed -# university_id :uuid not null, indexed -# -# Indexes -# -# index_research_laboratory_axes_on_research_laboratory_id (research_laboratory_id) -# index_research_laboratory_axes_on_university_id (university_id) -# -# Foreign Keys -# -# fk_rails_ad2cb9a562 (research_laboratory_id => research_laboratories.id) -# fk_rails_d334f832b4 (university_id => universities.id) -# -require "test_helper" - -class Research::Laboratory::AxisTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/test/models/research/laboratory_test.rb b/test/models/research/laboratory_test.rb deleted file mode 100644 index 54066f43146b3719162356c70762fcc8097ba425..0000000000000000000000000000000000000000 --- a/test/models/research/laboratory_test.rb +++ /dev/null @@ -1,29 +0,0 @@ -# == Schema Information -# -# Table name: research_laboratories -# -# id :uuid not null, primary key -# address :string -# city :string -# country :string -# name :string -# zipcode :string -# created_at :datetime not null -# updated_at :datetime not null -# university_id :uuid not null, indexed -# -# Indexes -# -# index_research_laboratories_on_university_id (university_id) -# -# Foreign Keys -# -# fk_rails_f61d27545f (university_id => universities.id) -# -require "test_helper" - -class Research::LaboratoryTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/test/models/research/thesis_test.rb b/test/models/research/thesis_test.rb deleted file mode 100644 index 436839fedd2f1528ba703a6eb56d29623fc40199..0000000000000000000000000000000000000000 --- a/test/models/research/thesis_test.rb +++ /dev/null @@ -1,38 +0,0 @@ -# == Schema Information -# -# Table name: research_theses -# -# id :uuid not null, primary key -# abstract :text -# completed :boolean default(FALSE) -# completed_at :date -# started_at :date -# title :string -# created_at :datetime not null -# updated_at :datetime not null -# author_id :uuid not null, indexed -# director_id :uuid not null, indexed -# research_laboratory_id :uuid not null, indexed -# university_id :uuid not null, indexed -# -# Indexes -# -# index_research_theses_on_author_id (author_id) -# index_research_theses_on_director_id (director_id) -# index_research_theses_on_research_laboratory_id (research_laboratory_id) -# index_research_theses_on_university_id (university_id) -# -# Foreign Keys -# -# fk_rails_1e42972d90 (author_id => university_people.id) -# fk_rails_44b431f9e5 (university_id => universities.id) -# fk_rails_8d223fdbaf (director_id => university_people.id) -# fk_rails_b3380066dc (research_laboratory_id => research_laboratories.id) -# -require "test_helper" - -class Research::ThesisTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/test/models/summernote_test.rb b/test/models/summernote_test.rb new file mode 100644 index 0000000000000000000000000000000000000000..348a45c6cdf0b7366f0bb7edc9a80a99187b3c72 --- /dev/null +++ b/test/models/summernote_test.rb @@ -0,0 +1,5 @@ +require "test_helper" + +class SummernoteTest < ActiveSupport::TestCase + +end diff --git a/test/models/university/person/involvement_test.rb b/test/models/university/person/involvement_test.rb deleted file mode 100644 index 90ea6f5dac2f126bdf3dd2a8b51c3d1637ae0f82..0000000000000000000000000000000000000000 --- a/test/models/university/person/involvement_test.rb +++ /dev/null @@ -1,33 +0,0 @@ -# == Schema Information -# -# Table name: university_person_involvements -# -# id :uuid not null, primary key -# description :text -# kind :integer -# position :integer -# target_type :string not null, indexed => [target_id] -# created_at :datetime not null -# updated_at :datetime not null -# person_id :uuid not null, indexed -# target_id :uuid not null, indexed => [target_type] -# university_id :uuid not null, indexed -# -# Indexes -# -# index_university_person_involvements_on_person_id (person_id) -# index_university_person_involvements_on_target (target_type,target_id) -# index_university_person_involvements_on_university_id (university_id) -# -# Foreign Keys -# -# fk_rails_407e2a671c (person_id => university_people.id) -# fk_rails_5c704f6338 (university_id => universities.id) -# -require "test_helper" - -class University::Person::InvolvementTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/test/models/university/role_test.rb b/test/models/university/role_test.rb deleted file mode 100644 index a0c47a9a421e1b609cf3d72ec012a3b18dc51ea5..0000000000000000000000000000000000000000 --- a/test/models/university/role_test.rb +++ /dev/null @@ -1,29 +0,0 @@ -# == Schema Information -# -# Table name: university_roles -# -# id :uuid not null, primary key -# description :text -# position :integer -# target_type :string indexed => [target_id] -# created_at :datetime not null -# updated_at :datetime not null -# target_id :uuid indexed => [target_type] -# university_id :uuid not null, indexed -# -# Indexes -# -# index_university_roles_on_target (target_type,target_id) -# index_university_roles_on_university_id (university_id) -# -# Foreign Keys -# -# fk_rails_8e52293a38 (university_id => universities.id) -# -require "test_helper" - -class University::RoleTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/test/system/communication/website/pages_test.rb b/test/system/communication/website/pages_test.rb deleted file mode 100644 index 8d302d5a5e0a47023c138301bef9dab9afd70173..0000000000000000000000000000000000000000 --- a/test/system/communication/website/pages_test.rb +++ /dev/null @@ -1,53 +0,0 @@ -require "application_system_test_case" - -class Communication::Website::PagesTest < ApplicationSystemTestCase - setup do - @communication_website_page = communication_website_pages(:one) - end - - test "visiting the index" do - visit communication_website_pages_url - assert_selector "h1", text: "Communication/Website/Pages" - end - - test "creating a Page" do - visit communication_website_pages_url - click_on "New Communication/Website/Page" - - fill_in "About", with: @communication_website_page.about_id - fill_in "Communication website", with: @communication_website_page.communication_website_id - fill_in "Description", with: @communication_website_page.description - fill_in "Kind", with: @communication_website_page.kind - fill_in "Title", with: @communication_website_page.title - fill_in "University", with: @communication_website_page.university_id - click_on "Create Page" - - assert_text "Page was successfully created" - click_on "Back" - end - - test "updating a Page" do - visit communication_website_pages_url - click_on "Edit", match: :first - - fill_in "About", with: @communication_website_page.about_id - fill_in "Communication website", with: @communication_website_page.communication_website_id - fill_in "Description", with: @communication_website_page.description - fill_in "Kind", with: @communication_website_page.kind - fill_in "Title", with: @communication_website_page.title - fill_in "University", with: @communication_website_page.university_id - click_on "Update Page" - - assert_text "Page was successfully updated" - click_on "Back" - end - - test "destroying a Page" do - visit communication_website_pages_url - page.accept_confirm do - click_on "Destroy", match: :first - end - - assert_text "Page was successfully destroyed" - end -end diff --git a/test/system/communication/website/posts_test.rb b/test/system/communication/website/posts_test.rb deleted file mode 100644 index cbd0d35c7b3491e166337ec2e0e6e0a7dabfbebf..0000000000000000000000000000000000000000 --- a/test/system/communication/website/posts_test.rb +++ /dev/null @@ -1,55 +0,0 @@ -require "application_system_test_case" - -class Communication::Website::PostsTest < ApplicationSystemTestCase - setup do - @communication_website_post = communication_website_posts(:one) - end - - test "visiting the index" do - visit communication_website_posts_url - assert_selector "h1", text: "Communication/Website/Posts" - end - - test "creating a Post" do - visit communication_website_posts_url - click_on "New Communication/Website/Post" - - fill_in "Description", with: @communication_website_post.description - fill_in "Published", with: @communication_website_post.published - fill_in "Published at", with: @communication_website_post.published_at - fill_in "Text", with: @communication_website_post.text - fill_in "Title", with: @communication_website_post.title - fill_in "University", with: @communication_website_post.university_id - fill_in "Website", with: @communication_website_post.website_id - click_on "Create Post" - - assert_text "Post was successfully created" - click_on "Back" - end - - test "updating a Post" do - visit communication_website_posts_url - click_on "Edit", match: :first - - fill_in "Description", with: @communication_website_post.description - fill_in "Published", with: @communication_website_post.published - fill_in "Published at", with: @communication_website_post.published_at - fill_in "Text", with: @communication_website_post.text - fill_in "Title", with: @communication_website_post.title - fill_in "University", with: @communication_website_post.university_id - fill_in "Website", with: @communication_website_post.website_id - click_on "Update Post" - - assert_text "Post was successfully updated" - click_on "Back" - end - - test "destroying a Post" do - visit communication_website_posts_url - page.accept_confirm do - click_on "Destroy", match: :first - end - - assert_text "Post was successfully destroyed" - end -end diff --git a/test/system/features/websites/sites_test.rb b/test/system/features/websites/sites_test.rb deleted file mode 100644 index b6e665bad81430226382a7aec8ff8324beb25f1a..0000000000000000000000000000000000000000 --- a/test/system/features/websites/sites_test.rb +++ /dev/null @@ -1,45 +0,0 @@ -require "application_system_test_case" - -class Features::Websites::SitesTest < ApplicationSystemTestCase - setup do - @features_websites_site = features_websites_sites(:one) - end - - test "visiting the index" do - visit features_websites_sites_url - assert_selector "h1", text: "Features/Websites/Sites" - end - - test "creating a Site" do - visit features_websites_sites_url - click_on "New Features/Websites/Site" - - fill_in "Domain", with: @features_websites_site.domain - fill_in "Name", with: @features_websites_site.name - click_on "Create Site" - - assert_text "Site was successfully created" - click_on "Back" - end - - test "updating a Site" do - visit features_websites_sites_url - click_on "Edit", match: :first - - fill_in "Domain", with: @features_websites_site.domain - fill_in "Name", with: @features_websites_site.name - click_on "Update Site" - - assert_text "Site was successfully updated" - click_on "Back" - end - - test "destroying a Site" do - visit features_websites_sites_url - page.accept_confirm do - click_on "Destroy", match: :first - end - - assert_text "Site was successfully destroyed" - end -end diff --git a/test/system/languages_test.rb b/test/system/languages_test.rb deleted file mode 100644 index b5d0360f238a800d57fc746952a7fb03f40e7918..0000000000000000000000000000000000000000 --- a/test/system/languages_test.rb +++ /dev/null @@ -1,45 +0,0 @@ -require "application_system_test_case" - -class LanguagesTest < ApplicationSystemTestCase - setup do - @language = languages(:one) - end - - test "visiting the index" do - visit languages_url - assert_selector "h1", text: "Languages" - end - - test "creating a Language" do - visit languages_url - click_on "New Language" - - fill_in "Iso code", with: @language.iso_code - fill_in "Name", with: @language.name - click_on "Create Language" - - assert_text "Language was successfully created" - click_on "Back" - end - - test "updating a Language" do - visit languages_url - click_on "Edit", match: :first - - fill_in "Iso code", with: @language.iso_code - fill_in "Name", with: @language.name - click_on "Update Language" - - assert_text "Language was successfully updated" - click_on "Back" - end - - test "destroying a Language" do - visit languages_url - page.accept_confirm do - click_on "Destroy", match: :first - end - - assert_text "Language was successfully destroyed" - end -end diff --git a/test/system/programs_test.rb b/test/system/programs_test.rb deleted file mode 100644 index 13b7a3193690992ab098b2696b4ac16715cafb08..0000000000000000000000000000000000000000 --- a/test/system/programs_test.rb +++ /dev/null @@ -1,67 +0,0 @@ -require "application_system_test_case" - -class ProgramsTest < ApplicationSystemTestCase - setup do - @program = programs(:one) - end - - test "visiting the index" do - visit programs_url - assert_selector "h1", text: "Programs" - end - - test "creating a Program" do - visit programs_url - click_on "New Program" - - fill_in "Accessibility", with: @program.accessibility - fill_in "Capacity", with: @program.capacity - check "Continuing" if @program.continuing - fill_in "Duration", with: @program.duration - fill_in "Ects", with: @program.ects - fill_in "Evaluation", with: @program.evaluation - fill_in "Level", with: @program.level - fill_in "Name", with: @program.name - fill_in "Objectives", with: @program.objectives - fill_in "Pedagogy", with: @program.pedagogy - fill_in "Prerequisites", with: @program.prerequisites - fill_in "Registration", with: @program.registration - fill_in "University", with: @program.university_id - click_on "Create Program" - - assert_text "Program was successfully created" - click_on "Back" - end - - test "updating a Program" do - visit programs_url - click_on "Edit", match: :first - - fill_in "Accessibility", with: @program.accessibility - fill_in "Capacity", with: @program.capacity - check "Continuing" if @program.continuing - fill_in "Duration", with: @program.duration - fill_in "Ects", with: @program.ects - fill_in "Evaluation", with: @program.evaluation - fill_in "Level", with: @program.level - fill_in "Name", with: @program.name - fill_in "Objectives", with: @program.objectives - fill_in "Pedagogy", with: @program.pedagogy - fill_in "Prerequisites", with: @program.prerequisites - fill_in "Registration", with: @program.registration - fill_in "University", with: @program.university_id - click_on "Update Program" - - assert_text "Program was successfully updated" - click_on "Back" - end - - test "destroying a Program" do - visit programs_url - page.accept_confirm do - click_on "Destroy", match: :first - end - - assert_text "Program was successfully destroyed" - end -end diff --git a/test/system/qualiopi/criterions_test.rb b/test/system/qualiopi/criterions_test.rb deleted file mode 100644 index 9185df996ca9ceba2957833f3d96549b77d323b9..0000000000000000000000000000000000000000 --- a/test/system/qualiopi/criterions_test.rb +++ /dev/null @@ -1,47 +0,0 @@ -require "application_system_test_case" - -class Qualiopi::CriterionsTest < ApplicationSystemTestCase - setup do - @qualiopi_criterion = qualiopi_criterions(:one) - end - - test "visiting the index" do - visit qualiopi_criterions_url - assert_selector "h1", text: "Qualiopi/Criterions" - end - - test "creating a Criterion" do - visit qualiopi_criterions_url - click_on "New Qualiopi/Criterion" - - fill_in "Description", with: @qualiopi_criterion.description - fill_in "Name", with: @qualiopi_criterion.name - fill_in "Number", with: @qualiopi_criterion.number - click_on "Create Criterion" - - assert_text "Criterion was successfully created" - click_on "Back" - end - - test "updating a Criterion" do - visit qualiopi_criterions_url - click_on "Edit", match: :first - - fill_in "Description", with: @qualiopi_criterion.description - fill_in "Name", with: @qualiopi_criterion.name - fill_in "Number", with: @qualiopi_criterion.number - click_on "Update Criterion" - - assert_text "Criterion was successfully updated" - click_on "Back" - end - - test "destroying a Criterion" do - visit qualiopi_criterions_url - page.accept_confirm do - click_on "Destroy", match: :first - end - - assert_text "Criterion was successfully destroyed" - end -end diff --git a/test/system/qualiopi/indicators_test.rb b/test/system/qualiopi/indicators_test.rb deleted file mode 100644 index 08133e726a769cc8dfd8c2bc24c7978fc40d4ee2..0000000000000000000000000000000000000000 --- a/test/system/qualiopi/indicators_test.rb +++ /dev/null @@ -1,55 +0,0 @@ -require "application_system_test_case" - -class Qualiopi::IndicatorsTest < ApplicationSystemTestCase - setup do - @qualiopi_indicator = qualiopi_indicators(:one) - end - - test "visiting the index" do - visit qualiopi_indicators_url - assert_selector "h1", text: "Qualiopi/Indicators" - end - - test "creating a Indicator" do - visit qualiopi_indicators_url - click_on "New Qualiopi/Indicator" - - fill_in "Criterion", with: @qualiopi_indicator.criterion_id - fill_in "Level expected", with: @qualiopi_indicator.level_expected - fill_in "Name", with: @qualiopi_indicator.name - fill_in "Non conformity", with: @qualiopi_indicator.non_conformity - fill_in "Number", with: @qualiopi_indicator.number - fill_in "Proof", with: @qualiopi_indicator.proof - fill_in "Requirement", with: @qualiopi_indicator.requirement - click_on "Create Indicator" - - assert_text "Indicator was successfully created" - click_on "Back" - end - - test "updating a Indicator" do - visit qualiopi_indicators_url - click_on "Edit", match: :first - - fill_in "Criterion", with: @qualiopi_indicator.criterion_id - fill_in "Level expected", with: @qualiopi_indicator.level_expected - fill_in "Name", with: @qualiopi_indicator.name - fill_in "Non conformity", with: @qualiopi_indicator.non_conformity - fill_in "Number", with: @qualiopi_indicator.number - fill_in "Proof", with: @qualiopi_indicator.proof - fill_in "Requirement", with: @qualiopi_indicator.requirement - click_on "Update Indicator" - - assert_text "Indicator was successfully updated" - click_on "Back" - end - - test "destroying a Indicator" do - visit qualiopi_indicators_url - page.accept_confirm do - click_on "Destroy", match: :first - end - - assert_text "Indicator was successfully destroyed" - end -end diff --git a/test/system/research/journal/articles_test.rb b/test/system/research/journal/articles_test.rb deleted file mode 100644 index f3ec7b46e2abced666eae18e482b09225f85dece..0000000000000000000000000000000000000000 --- a/test/system/research/journal/articles_test.rb +++ /dev/null @@ -1,53 +0,0 @@ -require "application_system_test_case" - -class Research::Journal::ArticlesTest < ApplicationSystemTestCase - setup do - @research_journal_article = research_journal_articles(:one) - end - - test "visiting the index" do - visit research_journal_articles_url - assert_selector "h1", text: "Research/Journal/Articles" - end - - test "creating a Article" do - visit research_journal_articles_url - click_on "New Research/Journal/Article" - - fill_in "Published at", with: @research_journal_article.published_at - fill_in "Research journal", with: @research_journal_article.research_journal_id - fill_in "Research journal volume", with: @research_journal_article.research_journal_volume_id - fill_in "Text", with: @research_journal_article.text - fill_in "Title", with: @research_journal_article.title - fill_in "University", with: @research_journal_article.university_id - click_on "Create Article" - - assert_text "Article was successfully created" - click_on "Back" - end - - test "updating a Article" do - visit research_journal_articles_url - click_on "Edit", match: :first - - fill_in "Published at", with: @research_journal_article.published_at - fill_in "Research journal", with: @research_journal_article.research_journal_id - fill_in "Research journal volume", with: @research_journal_article.research_journal_volume_id - fill_in "Text", with: @research_journal_article.text - fill_in "Title", with: @research_journal_article.title - fill_in "University", with: @research_journal_article.university_id - click_on "Update Article" - - assert_text "Article was successfully updated" - click_on "Back" - end - - test "destroying a Article" do - visit research_journal_articles_url - page.accept_confirm do - click_on "Destroy", match: :first - end - - assert_text "Article was successfully destroyed" - end -end diff --git a/test/system/research/journal/volumes_test.rb b/test/system/research/journal/volumes_test.rb deleted file mode 100644 index 85d50549bc7d167f5808982131598f255d31608b..0000000000000000000000000000000000000000 --- a/test/system/research/journal/volumes_test.rb +++ /dev/null @@ -1,47 +0,0 @@ -require "application_system_test_case" - -class Research::Journal::VolumesTest < ApplicationSystemTestCase - setup do - @research_journal_volume = research_journal_volumes(:one) - end - - test "visiting the index" do - visit research_journal_volumes_url - assert_selector "h1", text: "Research/Journal/Volumes" - end - - test "creating a Volume" do - visit research_journal_volumes_url - click_on "New Research/Journal/Volume" - - fill_in "Number", with: @research_journal_volume.number - fill_in "Published at", with: @research_journal_volume.published_at - fill_in "Title", with: @research_journal_volume.title - click_on "Create Volume" - - assert_text "Volume was successfully created" - click_on "Back" - end - - test "updating a Volume" do - visit research_journal_volumes_url - click_on "Edit", match: :first - - fill_in "Number", with: @research_journal_volume.number - fill_in "Published at", with: @research_journal_volume.published_at - fill_in "Title", with: @research_journal_volume.title - click_on "Update Volume" - - assert_text "Volume was successfully updated" - click_on "Back" - end - - test "destroying a Volume" do - visit research_journal_volumes_url - page.accept_confirm do - click_on "Destroy", match: :first - end - - assert_text "Volume was successfully destroyed" - end -end diff --git a/test/system/research/journals_test.rb b/test/system/research/journals_test.rb deleted file mode 100644 index 3c83334e62fc4c8dd7216d7c634a5b1e8a584457..0000000000000000000000000000000000000000 --- a/test/system/research/journals_test.rb +++ /dev/null @@ -1,45 +0,0 @@ -require "application_system_test_case" - -class Research::JournalsTest < ApplicationSystemTestCase - setup do - @research_journal = research_journals(:one) - end - - test "visiting the index" do - visit research_journals_url - assert_selector "h1", text: "Research/Journals" - end - - test "creating a Journal" do - visit research_journals_url - click_on "New Research/Journal" - - fill_in "Description", with: @research_journal.description - fill_in "Title", with: @research_journal.title - click_on "Create Journal" - - assert_text "Journal was successfully created" - click_on "Back" - end - - test "updating a Journal" do - visit research_journals_url - click_on "Edit", match: :first - - fill_in "Description", with: @research_journal.description - fill_in "Title", with: @research_journal.title - click_on "Update Journal" - - assert_text "Journal was successfully updated" - click_on "Back" - end - - test "destroying a Journal" do - visit research_journals_url - page.accept_confirm do - click_on "Destroy", match: :first - end - - assert_text "Journal was successfully destroyed" - end -end diff --git a/test/system/research/researchers_test.rb b/test/system/research/researchers_test.rb deleted file mode 100644 index f31cb48aa1271486b207056e872e28628e5be66f..0000000000000000000000000000000000000000 --- a/test/system/research/researchers_test.rb +++ /dev/null @@ -1,49 +0,0 @@ -require "application_system_test_case" - -class Research::ResearchersTest < ApplicationSystemTestCase - setup do - @research_researcher = research_researchers(:one) - end - - test "visiting the index" do - visit research_researchers_url - assert_selector "h1", text: "Research/Researchers" - end - - test "creating a Researcher" do - visit research_researchers_url - click_on "New Research/Researcher" - - fill_in "Biography", with: @research_researcher.biography - fill_in "First name", with: @research_researcher.first_name - fill_in "Last name", with: @research_researcher.last_name - fill_in "User", with: @research_researcher.user_id - click_on "Create Researcher" - - assert_text "Researcher was successfully created" - click_on "Back" - end - - test "updating a Researcher" do - visit research_researchers_url - click_on "Edit", match: :first - - fill_in "Biography", with: @research_researcher.biography - fill_in "First name", with: @research_researcher.first_name - fill_in "Last name", with: @research_researcher.last_name - fill_in "User", with: @research_researcher.user_id - click_on "Update Researcher" - - assert_text "Researcher was successfully updated" - click_on "Back" - end - - test "destroying a Researcher" do - visit research_researchers_url - page.accept_confirm do - click_on "Destroy", match: :first - end - - assert_text "Researcher was successfully destroyed" - end -end diff --git a/test/system/universities_test.rb b/test/system/universities_test.rb deleted file mode 100644 index bc8e1af7929d70b46bdc6b07734dbbb2d964c0c4..0000000000000000000000000000000000000000 --- a/test/system/universities_test.rb +++ /dev/null @@ -1,53 +0,0 @@ -require "application_system_test_case" - -class UniversitiesTest < ApplicationSystemTestCase - setup do - @university = universities(:one) - end - - test "visiting the index" do - visit universities_url - assert_selector "h1", text: "Universities" - end - - test "creating a University" do - visit universities_url - click_on "New University" - - fill_in "Address", with: @university.address - fill_in "City", with: @university.city - fill_in "Country", with: @university.country - fill_in "Name", with: @university.name - check "Private" if @university.private - fill_in "Zipcode", with: @university.zipcode - click_on "Create University" - - assert_text "University was successfully created" - click_on "Back" - end - - test "updating a University" do - visit universities_url - click_on "Edit", match: :first - - fill_in "Address", with: @university.address - fill_in "City", with: @university.city - fill_in "Country", with: @university.country - fill_in "Name", with: @university.name - check "Private" if @university.private - fill_in "Zipcode", with: @university.zipcode - click_on "Update University" - - assert_text "University was successfully updated" - click_on "Back" - end - - test "destroying a University" do - visit universities_url - page.accept_confirm do - click_on "Destroy", match: :first - end - - assert_text "University was successfully destroyed" - end -end diff --git a/test/system/university/schools_test.rb b/test/system/university/schools_test.rb deleted file mode 100644 index 3055e119d1ed67d5ef2008ac5d96f69da11d84a9..0000000000000000000000000000000000000000 --- a/test/system/university/schools_test.rb +++ /dev/null @@ -1,57 +0,0 @@ -require "application_system_test_case" - -class University::SchoolsTest < ApplicationSystemTestCase - setup do - @university_school = university_schools(:one) - end - - test "visiting the index" do - visit university_schools_url - assert_selector "h1", text: "University/Schools" - end - - test "creating a School" do - visit university_schools_url - click_on "New University/School" - - fill_in "Address", with: @university_school.address - fill_in "City", with: @university_school.city - fill_in "Country", with: @university_school.country - fill_in "Latitude", with: @university_school.latitude - fill_in "Longitude", with: @university_school.longitude - fill_in "Name", with: @university_school.name - fill_in "University", with: @university_school.university_id - fill_in "Zipcode", with: @university_school.zipcode - click_on "Create School" - - assert_text "School was successfully created" - click_on "Back" - end - - test "updating a School" do - visit university_schools_url - click_on "Edit", match: :first - - fill_in "Address", with: @university_school.address - fill_in "City", with: @university_school.city - fill_in "Country", with: @university_school.country - fill_in "Latitude", with: @university_school.latitude - fill_in "Longitude", with: @university_school.longitude - fill_in "Name", with: @university_school.name - fill_in "University", with: @university_school.university_id - fill_in "Zipcode", with: @university_school.zipcode - click_on "Update School" - - assert_text "School was successfully updated" - click_on "Back" - end - - test "destroying a School" do - visit university_schools_url - page.accept_confirm do - click_on "Destroy", match: :first - end - - assert_text "School was successfully destroyed" - end -end diff --git a/test/system/users_test.rb b/test/system/users_test.rb deleted file mode 100644 index 06f7377f621b4477ad231a08d7ee271bfb55e520..0000000000000000000000000000000000000000 --- a/test/system/users_test.rb +++ /dev/null @@ -1,47 +0,0 @@ -require "application_system_test_case" - -class UsersTest < ApplicationSystemTestCase - setup do - @user = users(:one) - end - - test "visiting the index" do - visit users_url - assert_selector "h1", text: "Users" - end - - test "creating a User" do - visit users_url - click_on "New User" - - fill_in "First name", with: @user.first_name - fill_in "Last name", with: @user.last_name - fill_in "Role", with: @user.role - click_on "Create User" - - assert_text "User was successfully created" - click_on "Back" - end - - test "updating a User" do - visit users_url - click_on "Edit", match: :first - - fill_in "First name", with: @user.first_name - fill_in "Last name", with: @user.last_name - fill_in "Role", with: @user.role - click_on "Update User" - - assert_text "User was successfully updated" - click_on "Back" - end - - test "destroying a User" do - visit users_url - page.accept_confirm do - click_on "Destroy", match: :first - end - - assert_text "User was successfully destroyed" - end -end