diff --git a/lib/erd/factory_helper.rb b/lib/erd/factory_helper.rb new file mode 100644 index 00000000..0e54076f --- /dev/null +++ b/lib/erd/factory_helper.rb @@ -0,0 +1,89 @@ +require 'open3' + +class FactoryHelper + # [str] + attr_accessor :schema_content + + # corresponding initial values (checked & grouped by regex) in factory file, using lambda to take in + # column name and returns the string with the right type of initial value + DEFAULT_VALUES = { + /string|text/ => lambda { |n| "#{n} \{ \'MyString\' \}" }, + /integer|bigint|float|decimal/ => lambda { |n| "#{n} \{ 1 \}" }, + /boolean/ => lambda { |n| "#{n} \{ true \}" }, + /datetime|timestamp/ => lambda { |n| "#{n} \{ Time.now \}" }, + /date/ => lambda { |n| "#{n} \{ Date.today \}" } + } + + # Adapter Pattern + # Formats column contents from schema into array + def format_content(str) + str.split("create_table") + end + + def create_factories + schema_content.each { |block| + # Create factory file if block is not empty + create_factory_file(block) if !block.strip.empty? + } + end + + private + def create_factory_file(block) + # Prunes all leading and trailing spaces + cols = block.split("\n", -1) + + file_content = "" + # Parses the table name of the first column + factory_name = parse_table_name(cols[0]).strip + file_content += "FactoryBot.define do\n\tfactory \:#{factory_name} do\n\t\t" + + # Parses all lines matching the template of schema columns, excluding trailing (end) + cols = cols.filter!{ |col| col.match?(/^\s*t\./) } + if !cols.nil? + parsed_columns = cols.map { |col| parse_line(col) } + file_content += parsed_columns.filter{ |pc| !pc.empty? }.join("\n\t\t") + end + + file_content += "\n\tend\nend" + + # Writes to the corresponding factory file + Open3.popen2e("echo \"#{file_content}\" > test/factories/#{factory_name}.rb") {|i, oe, t| + puts oe.read() + puts "test/factories/#{factory_name}.rb created!" + } + end + + def parse_table_name(create_table_line) + # Extracts table name that is followed, pruning surrounding quotes + create_table_line.split(",", 2).first.gsub("\"", "") + end + + def parse_line(column_line) + # Column name enclosed around the quotation marks + column_type = column_line.scan(/\..*\s/).first + # Ignore indexes that are not used on the application level + return "" if column_type.match?(/index/) + column_name = column_line.scan(/\".*\"/).first + parse_column(column_name, column_type) + end + + def parse_column(column_name, type) + # Ignores "created_at" and "updated_at" + return "" if column_name.match?(/^\"(created_at|updated_at)\"$/) + # Processes FK fields that ends with "_id", there should be another way to handle FK columns with aliases + return parse_references(column_name.gsub(/([\"\[\]]|_id\"$)/, "")) if column_name.match?(/_id\"$/) + + + # value_type is of type [string -> string] + value_type = DEFAULT_VALUES.find { |pattern, _| type.match?(pattern) } + if !value_type.nil? + # Calls the lambda that is mapped to by the corresponding pattern + return DEFAULT_VALUES[value_type.first].call(column_name.gsub(/\"/, "")) + end + "" + end + + def parse_references(referenced_table_name) + "association :#{referenced_table_name.strip}" + end +end \ No newline at end of file diff --git a/lib/erd/make_factory.rb b/lib/erd/make_factory.rb new file mode 100644 index 00000000..425e38a0 --- /dev/null +++ b/lib/erd/make_factory.rb @@ -0,0 +1,19 @@ +#!/usr/bin/env ruby +require 'open3' +require './lib/erd/factory_helper' + +def main() + # Removes previous factory files + Open3.popen2e("rm -rf test/factories/*"){ |i, oe, t| puts oe.read() } + + helper = FactoryHelper.new() + + # Reads all table names and columns in the db/schema file + Open3.popen2e("awk '/create_table/,/end/' \"db/schema.rb\"") { |i, oe, t| + helper.schema_content = helper.format_content(oe.read()) + } + + helper.create_factories() +end + +main() diff --git a/test/contexts.rb b/test/contexts.rb new file mode 100644 index 00000000..c824dbf1 --- /dev/null +++ b/test/contexts.rb @@ -0,0 +1,141 @@ +require "test/sets/certification_types" +require "test/sets/certifications" +require "test/sets/charge_types" +require "test/sets/charges" +require "test/sets/checkouts" +require "test/sets/delayed_jobs" +require "test/sets/event_types" +require "test/sets/events" +require "test/sets/faq" +require "test/sets/memberships" +require "test/sets/notes" +require "test/sets/organization_aliases" +require "test/sets/organization_build_statuses" +require "test/sets/organization_build_steps" +require "test/sets/organization_categories" +require "test/sets/organization_status_types" +require "test/sets/organization_timeline_entries" +require "test/sets/organization_timeline_entry_types" +require "test/sets/organizations" +require "test/sets/participants" +require "test/sets/scissor_lift_checkouts" +require "test/sets/scissor_lifts" +require "test/sets/shift_participants" +require "test/sets/shift_types" +require "test/sets/shifts" +require "test/sets/store_items" +require "test/sets/store_purchases" +require "test/sets/tasks" +require "test/sets/tool_inventories" +require "test/sets/tool_inventory_tools" +require "test/sets/tool_type_certifications" +require "test/sets/tool_types" +require "test/sets/tools" + +module Contexts + include Contexts::CertificationTypes + include Contexts::Certifications + include Contexts::ChargeTypes + include Contexts::Charges + include Contexts::Checkouts + include Contexts::DelayedJobs + include Contexts::EventTypes + include Contexts::Events + include Contexts::Faq + include Contexts::Memberships + include Contexts::Notes + include Contexts::OrganizationAliases + include Contexts::OrganizationBuildStatuses + include Contexts::OrganizationBuildSteps + include Contexts::OrganizationCategories + include Contexts::OrganizationStatusTypes + include Contexts::OrganizationTimelineEntries + include Contexts::OrganizationTimelineEntryTypes + include Contexts::Organizations + include Contexts::Participants + include Contexts::ScissorLiftCheckouts + include Contexts::ScissorLifts + include Contexts::ShiftParticipants + include Contexts::ShiftTypes + include Contexts::Shifts + include Contexts::StoreItems + include Contexts::StorePurchases + include Contexts::Tasks + include Contexts::ToolInventories + include Contexts::ToolInventoryTools + include Contexts::ToolTypeCertifications + include Contexts::ToolTypes + include Contexts::Tools + + def create_all + create_certification_types + create_certifications + create_charge_types + create_charges + create_checkouts + create_delayed_jobs + create_event_types + create_events + create_faq + create_memberships + create_notes + create_organization_aliases + create_organization_build_statuses + create_organization_build_steps + create_organization_categories + create_organization_status_types + create_organization_timeline_entries + create_organization_timeline_entry_types + create_organizations + create_participants + create_scissor_lift_checkouts + create_scissor_lifts + create_shift_participants + create_shift_types + create_shifts + create_store_items + create_store_purchases + create_tasks + create_tool_inventories + create_tool_inventory_tools + create_tool_type_certifications + create_tool_types + create_tools + end + + def destroy_all + destroy_certification_types + destroy_certifications + destroy_charge_types + destroy_charges + destroy_checkouts + destroy_delayed_jobs + destroy_event_types + destroy_events + destroy_faq + destroy_memberships + destroy_notes + destroy_organization_aliases + destroy_organization_build_statuses + destroy_organization_build_steps + destroy_organization_categories + destroy_organization_status_types + destroy_organization_timeline_entries + destroy_organization_timeline_entry_types + destroy_organizations + destroy_participants + destroy_scissor_lift_checkouts + destroy_scissor_lifts + destroy_shift_participants + destroy_shift_types + destroy_shifts + destroy_store_items + destroy_store_purchases + destroy_tasks + destroy_tool_inventories + destroy_tool_inventory_tools + destroy_tool_type_certifications + destroy_tool_types + destroy_tools + end +end diff --git a/test/factories/certification_types.rb b/test/factories/certification_types.rb new file mode 100644 index 00000000..e19c216e --- /dev/null +++ b/test/factories/certification_types.rb @@ -0,0 +1,5 @@ +FactoryBot.define do + factory :certification_types do + name { 'MyString' } + end +end diff --git a/test/factories/certifications.rb b/test/factories/certifications.rb new file mode 100644 index 00000000..71099f77 --- /dev/null +++ b/test/factories/certifications.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :certifications do + association :participant + association :certification_type + end +end diff --git a/test/factories/charge_types.rb b/test/factories/charge_types.rb new file mode 100644 index 00000000..819ab67b --- /dev/null +++ b/test/factories/charge_types.rb @@ -0,0 +1,8 @@ +FactoryBot.define do + factory :charge_types do + name { 'MyString' } + requires_booth_chair_approval { true } + default_amount { 1 } + description { 'MyString' } + end +end diff --git a/test/factories/charges.rb b/test/factories/charges.rb new file mode 100644 index 00000000..fc8579fa --- /dev/null +++ b/test/factories/charges.rb @@ -0,0 +1,13 @@ +FactoryBot.define do + factory :charges do + association :organization + association :charge_type + amount { 1 } + description { 'MyString' } + association :issuing_participant + association :receiving_participant + charged_at { Time.now } + is_approved { true } + association :creating_participant + end +end diff --git a/test/factories/checkouts.rb b/test/factories/checkouts.rb new file mode 100644 index 00000000..84f929a8 --- /dev/null +++ b/test/factories/checkouts.rb @@ -0,0 +1,9 @@ +FactoryBot.define do + factory :checkouts do + association :tool + checked_out_at { Time.now } + checked_in_at { Time.now } + association :participant + association :organization + end +end diff --git a/test/factories/delayed_jobs.rb b/test/factories/delayed_jobs.rb new file mode 100644 index 00000000..88e38a36 --- /dev/null +++ b/test/factories/delayed_jobs.rb @@ -0,0 +1,13 @@ +FactoryBot.define do + factory :delayed_jobs do + priority { 1 } + attempts { 1 } + handler { 'MyString' } + last_error { 'MyString' } + run_at { Time.now } + locked_at { Time.now } + failed_at { Time.now } + locked_by { 'MyString' } + queue { 'MyString' } + end +end diff --git a/test/factories/event_types.rb b/test/factories/event_types.rb new file mode 100644 index 00000000..aa9d41e3 --- /dev/null +++ b/test/factories/event_types.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :event_types do + display { true } + name { 'MyString' } + end +end diff --git a/test/factories/events.rb b/test/factories/events.rb new file mode 100644 index 00000000..197b74e3 --- /dev/null +++ b/test/factories/events.rb @@ -0,0 +1,8 @@ +FactoryBot.define do + factory :events do + is_done { true } + association :event_type + description { 'MyString' } + association :participant + end +end diff --git a/test/factories/faq.rb b/test/factories/faq.rb new file mode 100644 index 00000000..1f3834ed --- /dev/null +++ b/test/factories/faq.rb @@ -0,0 +1,7 @@ +FactoryBot.define do + factory :faq do + question { 'MyString' } + answer { 'MyString' } + association :organization_category + end +end diff --git a/test/factories/memberships.rb b/test/factories/memberships.rb new file mode 100644 index 00000000..8c9dc462 --- /dev/null +++ b/test/factories/memberships.rb @@ -0,0 +1,11 @@ +FactoryBot.define do + factory :memberships do + association :organization + association :participant + is_booth_chair { true } + title { 'MyString' } + booth_chair_order { 1 } + is_in_csv { true } + is_added_by_csv { true } + end +end diff --git a/test/factories/notes.rb b/test/factories/notes.rb new file mode 100644 index 00000000..0bd5979e --- /dev/null +++ b/test/factories/notes.rb @@ -0,0 +1,10 @@ +FactoryBot.define do + factory :notes do + association :participant + association :organization + hidden { true } + title { 'MyString' } + value { 'MyString' } + color { 'MyString' } + end +end diff --git a/test/factories/organization_aliases.rb b/test/factories/organization_aliases.rb new file mode 100644 index 00000000..ef6f310b --- /dev/null +++ b/test/factories/organization_aliases.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :organization_aliases do + name { 'MyString' } + association :organization + end +end diff --git a/test/factories/organization_build_statuses.rb b/test/factories/organization_build_statuses.rb new file mode 100644 index 00000000..932169ee --- /dev/null +++ b/test/factories/organization_build_statuses.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :organization_build_statuses do + association :organization + status_type { 'MyString' } + end +end diff --git a/test/factories/organization_build_steps.rb b/test/factories/organization_build_steps.rb new file mode 100644 index 00000000..fe93d2d8 --- /dev/null +++ b/test/factories/organization_build_steps.rb @@ -0,0 +1,9 @@ +FactoryBot.define do + factory :organization_build_steps do + title { 'MyString' } + requirements { 'MyString' } + step { 1 } + completed { true } + association :organization_build_status + end +end diff --git a/test/factories/organization_categories.rb b/test/factories/organization_categories.rb new file mode 100644 index 00000000..553e051b --- /dev/null +++ b/test/factories/organization_categories.rb @@ -0,0 +1,7 @@ +FactoryBot.define do + factory :organization_categories do + name { 'MyString' } + building { true } + lookup_key { 'MyString' } + end +end diff --git a/test/factories/organization_status_types.rb b/test/factories/organization_status_types.rb new file mode 100644 index 00000000..33fa6a7d --- /dev/null +++ b/test/factories/organization_status_types.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :organization_status_types do + name { 'MyString' } + display { true } + end +end diff --git a/test/factories/organization_timeline_entries.rb b/test/factories/organization_timeline_entries.rb new file mode 100644 index 00000000..9995a62c --- /dev/null +++ b/test/factories/organization_timeline_entries.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :organization_timeline_entries do + started_at { Time.now } + ended_at { Time.now } + end +end diff --git a/test/factories/organization_timeline_entry_types.rb b/test/factories/organization_timeline_entry_types.rb new file mode 100644 index 00000000..1fd1eb1c --- /dev/null +++ b/test/factories/organization_timeline_entry_types.rb @@ -0,0 +1,5 @@ +FactoryBot.define do + factory :organization_timeline_entry_types do + name { 'MyString' } + end +end diff --git a/test/factories/organizations.rb b/test/factories/organizations.rb new file mode 100644 index 00000000..c7cfc182 --- /dev/null +++ b/test/factories/organizations.rb @@ -0,0 +1,7 @@ +FactoryBot.define do + factory :organizations do + name { 'MyString' } + association :organization_category + short_name { 'MyString' } + end +end diff --git a/test/factories/participants.rb b/test/factories/participants.rb new file mode 100644 index 00000000..59151de7 --- /dev/null +++ b/test/factories/participants.rb @@ -0,0 +1,15 @@ +FactoryBot.define do + factory :participants do + eppn { 'MyString' } + signed_waiver { true } + phone_number { 'MyString' } + cached_name { 'MyString' } + cached_surname { 'MyString' } + cached_email { 'MyString' } + cached_department { 'MyString' } + cached_student_class { 'MyString' } + cache_updated { Time.now } + admin { true } + watched_safety_video { true } + end +end diff --git a/test/factories/scissor_lift_checkouts.rb b/test/factories/scissor_lift_checkouts.rb new file mode 100644 index 00000000..db61cbd5 --- /dev/null +++ b/test/factories/scissor_lift_checkouts.rb @@ -0,0 +1,11 @@ +FactoryBot.define do + factory :scissor_lift_checkouts do + association :scissor_lift + association :participant + association :organization + checked_out_at { Time.now } + checked_in_at { Time.now } + due_at { Time.now } + is_forfeit { true } + end +end diff --git a/test/factories/scissor_lifts.rb b/test/factories/scissor_lifts.rb new file mode 100644 index 00000000..2720081f --- /dev/null +++ b/test/factories/scissor_lifts.rb @@ -0,0 +1,5 @@ +FactoryBot.define do + factory :scissor_lifts do + name { 'MyString' } + end +end diff --git a/test/factories/shift_participants.rb b/test/factories/shift_participants.rb new file mode 100644 index 00000000..c3aa4222 --- /dev/null +++ b/test/factories/shift_participants.rb @@ -0,0 +1,7 @@ +FactoryBot.define do + factory :shift_participants do + association :shift + association :participant + clocked_in_at { Time.now } + end +end diff --git a/test/factories/shift_types.rb b/test/factories/shift_types.rb new file mode 100644 index 00000000..904988b1 --- /dev/null +++ b/test/factories/shift_types.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :shift_types do + name { 'MyString' } + short_name { 'MyString' } + end +end diff --git a/test/factories/shifts.rb b/test/factories/shifts.rb new file mode 100644 index 00000000..edb37c35 --- /dev/null +++ b/test/factories/shifts.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :shifts do + starts_at { Time.now } + ends_at { Time.now } + end +end diff --git a/test/factories/store_items.rb b/test/factories/store_items.rb new file mode 100644 index 00000000..9e4dfb1a --- /dev/null +++ b/test/factories/store_items.rb @@ -0,0 +1,7 @@ +FactoryBot.define do + factory :store_items do + name { 'MyString' } + price { 1 } + quantity { 1 } + end +end diff --git a/test/factories/store_purchases.rb b/test/factories/store_purchases.rb new file mode 100644 index 00000000..1bcc963c --- /dev/null +++ b/test/factories/store_purchases.rb @@ -0,0 +1,8 @@ +FactoryBot.define do + factory :store_purchases do + association :charge + association :store_item + price_at_purchase { 1 } + quantity_purchased { 1 } + end +end diff --git a/test/factories/tasks.rb b/test/factories/tasks.rb new file mode 100644 index 00000000..8df03996 --- /dev/null +++ b/test/factories/tasks.rb @@ -0,0 +1,10 @@ +FactoryBot.define do + factory :tasks do + due_at { Time.now } + # TODO: Rename variable if it is not intended as a FK + completed_by_id { 1 } + name { 'MyString' } + description { 'MyString' } + is_completed { true } + end +end diff --git a/test/factories/tool_inventories.rb b/test/factories/tool_inventories.rb new file mode 100644 index 00000000..e3fe74b0 --- /dev/null +++ b/test/factories/tool_inventories.rb @@ -0,0 +1,5 @@ +FactoryBot.define do + factory :tool_inventories do + + end +end diff --git a/test/factories/tool_inventory_tools.rb b/test/factories/tool_inventory_tools.rb new file mode 100644 index 00000000..3996ba46 --- /dev/null +++ b/test/factories/tool_inventory_tools.rb @@ -0,0 +1,9 @@ +FactoryBot.define do + factory :tool_inventory_tools do + barcode { 1 } + description { 'MyString' } + active { true } + association :tool_type + association :tool_inventory + end +end diff --git a/test/factories/tool_type_certifications.rb b/test/factories/tool_type_certifications.rb new file mode 100644 index 00000000..eb7c0f85 --- /dev/null +++ b/test/factories/tool_type_certifications.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :tool_type_certifications do + association :tool_type + association :certification_type + end +end diff --git a/test/factories/tool_types.rb b/test/factories/tool_types.rb new file mode 100644 index 00000000..adfb9175 --- /dev/null +++ b/test/factories/tool_types.rb @@ -0,0 +1,5 @@ +FactoryBot.define do + factory :tool_types do + name { 'MyString' } + end +end diff --git a/test/factories/tools.rb b/test/factories/tools.rb new file mode 100644 index 00000000..27f3c358 --- /dev/null +++ b/test/factories/tools.rb @@ -0,0 +1,8 @@ +FactoryBot.define do + factory :tools do + barcode { 1 } + description { 'MyString' } + association :tool_type + active { true } + end +end diff --git a/test/make_sets.sh b/test/make_sets.sh new file mode 100755 index 00000000..8031083c --- /dev/null +++ b/test/make_sets.sh @@ -0,0 +1,22 @@ +for file in $(ls ./factories); do + name=$(cut -d "." -f 1 <<< $file) + module_name="" + num_words=$(tr -dc '_' <<< $name | wc -c) + for n in $(seq 1 $((num_words+1))); do + w=$(cut -d "_" -f $n <<< $name) + module_name+=${w^} + done + echo "module Contexts + module ${module_name} + def create_${name} + + end + + def destroy_${name} + + end + end + end + " >> ./sets/${name}.rb + echo "destroy_${name}" >> ./contexts.rb +done \ No newline at end of file diff --git a/test/sets/certification_types.rb b/test/sets/certification_types.rb new file mode 100644 index 00000000..826a4d7d --- /dev/null +++ b/test/sets/certification_types.rb @@ -0,0 +1,60 @@ +module Contexts + module CertificationTypes + def create_certification_types + + end + + def destroy_certification_types + + end + end + end + +module Contexts + module CertificationTypes + def create_certification_types + + end + + def destroy_certification_types + + end + end + end + +module Contexts + module CertificationTypes + def create_certification_types + + end + + def destroy_certification_types + + end + end + end + +module Contexts + module CertificationTypes + def create_certification_types + + end + + def destroy_certification_types + + end + end + end + +module Contexts + module CertificationTypes + def create_certification_types + + end + + def destroy_certification_types + + end + end + end + diff --git a/test/sets/certifications.rb b/test/sets/certifications.rb new file mode 100644 index 00000000..d65c7739 --- /dev/null +++ b/test/sets/certifications.rb @@ -0,0 +1,60 @@ +module Contexts + module Certifications + def create_certifications + + end + + def destroy_certifications + + end + end + end + +module Contexts + module Certifications + def create_certifications + + end + + def destroy_certifications + + end + end + end + +module Contexts + module Certifications + def create_certifications + + end + + def destroy_certifications + + end + end + end + +module Contexts + module Certifications + def create_certifications + + end + + def destroy_certifications + + end + end + end + +module Contexts + module Certifications + def create_certifications + + end + + def destroy_certifications + + end + end + end + diff --git a/test/sets/charge_types.rb b/test/sets/charge_types.rb new file mode 100644 index 00000000..8dd8c29c --- /dev/null +++ b/test/sets/charge_types.rb @@ -0,0 +1,60 @@ +module Contexts + module ChargeTypes + def create_charge_types + + end + + def destroy_charge_types + + end + end + end + +module Contexts + module ChargeTypes + def create_charge_types + + end + + def destroy_charge_types + + end + end + end + +module Contexts + module ChargeTypes + def create_charge_types + + end + + def destroy_charge_types + + end + end + end + +module Contexts + module ChargeTypes + def create_charge_types + + end + + def destroy_charge_types + + end + end + end + +module Contexts + module ChargeTypes + def create_charge_types + + end + + def destroy_charge_types + + end + end + end + diff --git a/test/sets/charges.rb b/test/sets/charges.rb new file mode 100644 index 00000000..8c72c908 --- /dev/null +++ b/test/sets/charges.rb @@ -0,0 +1,60 @@ +module Contexts + module Charges + def create_charges + + end + + def destroy_charges + + end + end + end + +module Contexts + module Charges + def create_charges + + end + + def destroy_charges + + end + end + end + +module Contexts + module Charges + def create_charges + + end + + def destroy_charges + + end + end + end + +module Contexts + module Charges + def create_charges + + end + + def destroy_charges + + end + end + end + +module Contexts + module Charges + def create_charges + + end + + def destroy_charges + + end + end + end + diff --git a/test/sets/checkouts.rb b/test/sets/checkouts.rb new file mode 100644 index 00000000..e72a2568 --- /dev/null +++ b/test/sets/checkouts.rb @@ -0,0 +1,60 @@ +module Contexts + module Checkouts + def create_checkouts + + end + + def destroy_checkouts + + end + end + end + +module Contexts + module Checkouts + def create_checkouts + + end + + def destroy_checkouts + + end + end + end + +module Contexts + module Checkouts + def create_checkouts + + end + + def destroy_checkouts + + end + end + end + +module Contexts + module Checkouts + def create_checkouts + + end + + def destroy_checkouts + + end + end + end + +module Contexts + module Checkouts + def create_checkouts + + end + + def destroy_checkouts + + end + end + end + diff --git a/test/sets/delayed_jobs.rb b/test/sets/delayed_jobs.rb new file mode 100644 index 00000000..9dc3d5e4 --- /dev/null +++ b/test/sets/delayed_jobs.rb @@ -0,0 +1,60 @@ +module Contexts + module DelayedJobs + def create_delayed_jobs + + end + + def destroy_delayed_jobs + + end + end + end + +module Contexts + module DelayedJobs + def create_delayed_jobs + + end + + def destroy_delayed_jobs + + end + end + end + +module Contexts + module DelayedJobs + def create_delayed_jobs + + end + + def destroy_delayed_jobs + + end + end + end + +module Contexts + module DelayedJobs + def create_delayed_jobs + + end + + def destroy_delayed_jobs + + end + end + end + +module Contexts + module DelayedJobs + def create_delayed_jobs + + end + + def destroy_delayed_jobs + + end + end + end + diff --git a/test/sets/event_types.rb b/test/sets/event_types.rb new file mode 100644 index 00000000..e8b989c3 --- /dev/null +++ b/test/sets/event_types.rb @@ -0,0 +1,60 @@ +module Contexts + module EventTypes + def create_event_types + + end + + def destroy_event_types + + end + end + end + +module Contexts + module EventTypes + def create_event_types + + end + + def destroy_event_types + + end + end + end + +module Contexts + module EventTypes + def create_event_types + + end + + def destroy_event_types + + end + end + end + +module Contexts + module EventTypes + def create_event_types + + end + + def destroy_event_types + + end + end + end + +module Contexts + module EventTypes + def create_event_types + + end + + def destroy_event_types + + end + end + end + diff --git a/test/sets/events.rb b/test/sets/events.rb new file mode 100644 index 00000000..c5b17335 --- /dev/null +++ b/test/sets/events.rb @@ -0,0 +1,60 @@ +module Contexts + module Events + def create_events + + end + + def destroy_events + + end + end + end + +module Contexts + module Events + def create_events + + end + + def destroy_events + + end + end + end + +module Contexts + module Events + def create_events + + end + + def destroy_events + + end + end + end + +module Contexts + module Events + def create_events + + end + + def destroy_events + + end + end + end + +module Contexts + module Events + def create_events + + end + + def destroy_events + + end + end + end + diff --git a/test/sets/faq.rb b/test/sets/faq.rb new file mode 100644 index 00000000..b7887add --- /dev/null +++ b/test/sets/faq.rb @@ -0,0 +1,60 @@ +module Contexts + module Faq + def create_faq + + end + + def destroy_faq + + end + end + end + +module Contexts + module Faq + def create_faq + + end + + def destroy_faq + + end + end + end + +module Contexts + module Faq + def create_faq + + end + + def destroy_faq + + end + end + end + +module Contexts + module Faq + def create_faq + + end + + def destroy_faq + + end + end + end + +module Contexts + module Faq + def create_faq + + end + + def destroy_faq + + end + end + end + diff --git a/test/sets/memberships.rb b/test/sets/memberships.rb new file mode 100644 index 00000000..81f4f564 --- /dev/null +++ b/test/sets/memberships.rb @@ -0,0 +1,60 @@ +module Contexts + module Memberships + def create_memberships + + end + + def destroy_memberships + + end + end + end + +module Contexts + module Memberships + def create_memberships + + end + + def destroy_memberships + + end + end + end + +module Contexts + module Memberships + def create_memberships + + end + + def destroy_memberships + + end + end + end + +module Contexts + module Memberships + def create_memberships + + end + + def destroy_memberships + + end + end + end + +module Contexts + module Memberships + def create_memberships + + end + + def destroy_memberships + + end + end + end + diff --git a/test/sets/notes.rb b/test/sets/notes.rb new file mode 100644 index 00000000..ffaa0ef2 --- /dev/null +++ b/test/sets/notes.rb @@ -0,0 +1,60 @@ +module Contexts + module Notes + def create_notes + + end + + def destroy_notes + + end + end + end + +module Contexts + module Notes + def create_notes + + end + + def destroy_notes + + end + end + end + +module Contexts + module Notes + def create_notes + + end + + def destroy_notes + + end + end + end + +module Contexts + module Notes + def create_notes + + end + + def destroy_notes + + end + end + end + +module Contexts + module Notes + def create_notes + + end + + def destroy_notes + + end + end + end + diff --git a/test/sets/organization_aliases.rb b/test/sets/organization_aliases.rb new file mode 100644 index 00000000..df26c207 --- /dev/null +++ b/test/sets/organization_aliases.rb @@ -0,0 +1,60 @@ +module Contexts + module OrganizationAliases + def create_organization_aliases + + end + + def destroy_organization_aliases + + end + end + end + +module Contexts + module OrganizationAliases + def create_organization_aliases + + end + + def destroy_organization_aliases + + end + end + end + +module Contexts + module OrganizationAliases + def create_organization_aliases + + end + + def destroy_organization_aliases + + end + end + end + +module Contexts + module OrganizationAliases + def create_organization_aliases + + end + + def destroy_organization_aliases + + end + end + end + +module Contexts + module OrganizationAliases + def create_organization_aliases + + end + + def destroy_organization_aliases + + end + end + end + diff --git a/test/sets/organization_build_statuses.rb b/test/sets/organization_build_statuses.rb new file mode 100644 index 00000000..be70a06d --- /dev/null +++ b/test/sets/organization_build_statuses.rb @@ -0,0 +1,60 @@ +module Contexts + module OrganizationBuildStatuses + def create_organization_build_statuses + + end + + def destroy_organization_build_statuses + + end + end + end + +module Contexts + module OrganizationBuildStatuses + def create_organization_build_statuses + + end + + def destroy_organization_build_statuses + + end + end + end + +module Contexts + module OrganizationBuildStatuses + def create_organization_build_statuses + + end + + def destroy_organization_build_statuses + + end + end + end + +module Contexts + module OrganizationBuildStatuses + def create_organization_build_statuses + + end + + def destroy_organization_build_statuses + + end + end + end + +module Contexts + module OrganizationBuildStatuses + def create_organization_build_statuses + + end + + def destroy_organization_build_statuses + + end + end + end + diff --git a/test/sets/organization_build_steps.rb b/test/sets/organization_build_steps.rb new file mode 100644 index 00000000..d9e9f34f --- /dev/null +++ b/test/sets/organization_build_steps.rb @@ -0,0 +1,60 @@ +module Contexts + module OrganizationBuildSteps + def create_organization_build_steps + + end + + def destroy_organization_build_steps + + end + end + end + +module Contexts + module OrganizationBuildSteps + def create_organization_build_steps + + end + + def destroy_organization_build_steps + + end + end + end + +module Contexts + module OrganizationBuildSteps + def create_organization_build_steps + + end + + def destroy_organization_build_steps + + end + end + end + +module Contexts + module OrganizationBuildSteps + def create_organization_build_steps + + end + + def destroy_organization_build_steps + + end + end + end + +module Contexts + module OrganizationBuildSteps + def create_organization_build_steps + + end + + def destroy_organization_build_steps + + end + end + end + diff --git a/test/sets/organization_categories.rb b/test/sets/organization_categories.rb new file mode 100644 index 00000000..18abe414 --- /dev/null +++ b/test/sets/organization_categories.rb @@ -0,0 +1,60 @@ +module Contexts + module OrganizationCategories + def create_organization_categories + + end + + def destroy_organization_categories + + end + end + end + +module Contexts + module OrganizationCategories + def create_organization_categories + + end + + def destroy_organization_categories + + end + end + end + +module Contexts + module OrganizationCategories + def create_organization_categories + + end + + def destroy_organization_categories + + end + end + end + +module Contexts + module OrganizationCategories + def create_organization_categories + + end + + def destroy_organization_categories + + end + end + end + +module Contexts + module OrganizationCategories + def create_organization_categories + + end + + def destroy_organization_categories + + end + end + end + diff --git a/test/sets/organization_status_types.rb b/test/sets/organization_status_types.rb new file mode 100644 index 00000000..96842d2b --- /dev/null +++ b/test/sets/organization_status_types.rb @@ -0,0 +1,60 @@ +module Contexts + module OrganizationStatusTypes + def create_organization_status_types + + end + + def destroy_organization_status_types + + end + end + end + +module Contexts + module OrganizationStatusTypes + def create_organization_status_types + + end + + def destroy_organization_status_types + + end + end + end + +module Contexts + module OrganizationStatusTypes + def create_organization_status_types + + end + + def destroy_organization_status_types + + end + end + end + +module Contexts + module OrganizationStatusTypes + def create_organization_status_types + + end + + def destroy_organization_status_types + + end + end + end + +module Contexts + module OrganizationStatusTypes + def create_organization_status_types + + end + + def destroy_organization_status_types + + end + end + end + diff --git a/test/sets/organization_timeline_entries.rb b/test/sets/organization_timeline_entries.rb new file mode 100644 index 00000000..bfc88a66 --- /dev/null +++ b/test/sets/organization_timeline_entries.rb @@ -0,0 +1,60 @@ +module Contexts + module OrganizationTimelineEntries + def create_organization_timeline_entries + + end + + def destroy_organization_timeline_entries + + end + end + end + +module Contexts + module OrganizationTimelineEntries + def create_organization_timeline_entries + + end + + def destroy_organization_timeline_entries + + end + end + end + +module Contexts + module OrganizationTimelineEntries + def create_organization_timeline_entries + + end + + def destroy_organization_timeline_entries + + end + end + end + +module Contexts + module OrganizationTimelineEntries + def create_organization_timeline_entries + + end + + def destroy_organization_timeline_entries + + end + end + end + +module Contexts + module OrganizationTimelineEntries + def create_organization_timeline_entries + + end + + def destroy_organization_timeline_entries + + end + end + end + diff --git a/test/sets/organization_timeline_entry_types.rb b/test/sets/organization_timeline_entry_types.rb new file mode 100644 index 00000000..5c590a63 --- /dev/null +++ b/test/sets/organization_timeline_entry_types.rb @@ -0,0 +1,60 @@ +module Contexts + module OrganizationTimelineEntryTypes + def create_organization_timeline_entry_types + + end + + def destroy_organization_timeline_entry_types + + end + end + end + +module Contexts + module OrganizationTimelineEntryTypes + def create_organization_timeline_entry_types + + end + + def destroy_organization_timeline_entry_types + + end + end + end + +module Contexts + module OrganizationTimelineEntryTypes + def create_organization_timeline_entry_types + + end + + def destroy_organization_timeline_entry_types + + end + end + end + +module Contexts + module OrganizationTimelineEntryTypes + def create_organization_timeline_entry_types + + end + + def destroy_organization_timeline_entry_types + + end + end + end + +module Contexts + module OrganizationTimelineEntryTypes + def create_organization_timeline_entry_types + + end + + def destroy_organization_timeline_entry_types + + end + end + end + diff --git a/test/sets/organizations.rb b/test/sets/organizations.rb new file mode 100644 index 00000000..caca50a8 --- /dev/null +++ b/test/sets/organizations.rb @@ -0,0 +1,60 @@ +module Contexts + module Organizations + def create_organizations + + end + + def destroy_organizations + + end + end + end + +module Contexts + module Organizations + def create_organizations + + end + + def destroy_organizations + + end + end + end + +module Contexts + module Organizations + def create_organizations + + end + + def destroy_organizations + + end + end + end + +module Contexts + module Organizations + def create_organizations + + end + + def destroy_organizations + + end + end + end + +module Contexts + module Organizations + def create_organizations + + end + + def destroy_organizations + + end + end + end + diff --git a/test/sets/participants.rb b/test/sets/participants.rb new file mode 100644 index 00000000..f72468d8 --- /dev/null +++ b/test/sets/participants.rb @@ -0,0 +1,60 @@ +module Contexts + module Participants + def create_participants + + end + + def destroy_participants + + end + end + end + +module Contexts + module Participants + def create_participants + + end + + def destroy_participants + + end + end + end + +module Contexts + module Participants + def create_participants + + end + + def destroy_participants + + end + end + end + +module Contexts + module Participants + def create_participants + + end + + def destroy_participants + + end + end + end + +module Contexts + module Participants + def create_participants + + end + + def destroy_participants + + end + end + end + diff --git a/test/sets/scissor_lift_checkouts.rb b/test/sets/scissor_lift_checkouts.rb new file mode 100644 index 00000000..2b358fd9 --- /dev/null +++ b/test/sets/scissor_lift_checkouts.rb @@ -0,0 +1,60 @@ +module Contexts + module ScissorLiftCheckouts + def create_scissor_lift_checkouts + + end + + def destroy_scissor_lift_checkouts + + end + end + end + +module Contexts + module ScissorLiftCheckouts + def create_scissor_lift_checkouts + + end + + def destroy_scissor_lift_checkouts + + end + end + end + +module Contexts + module ScissorLiftCheckouts + def create_scissor_lift_checkouts + + end + + def destroy_scissor_lift_checkouts + + end + end + end + +module Contexts + module ScissorLiftCheckouts + def create_scissor_lift_checkouts + + end + + def destroy_scissor_lift_checkouts + + end + end + end + +module Contexts + module ScissorLiftCheckouts + def create_scissor_lift_checkouts + + end + + def destroy_scissor_lift_checkouts + + end + end + end + diff --git a/test/sets/scissor_lifts.rb b/test/sets/scissor_lifts.rb new file mode 100644 index 00000000..3f55fdd2 --- /dev/null +++ b/test/sets/scissor_lifts.rb @@ -0,0 +1,60 @@ +module Contexts + module ScissorLifts + def create_scissor_lifts + + end + + def destroy_scissor_lifts + + end + end + end + +module Contexts + module ScissorLifts + def create_scissor_lifts + + end + + def destroy_scissor_lifts + + end + end + end + +module Contexts + module ScissorLifts + def create_scissor_lifts + + end + + def destroy_scissor_lifts + + end + end + end + +module Contexts + module ScissorLifts + def create_scissor_lifts + + end + + def destroy_scissor_lifts + + end + end + end + +module Contexts + module ScissorLifts + def create_scissor_lifts + + end + + def destroy_scissor_lifts + + end + end + end + diff --git a/test/sets/shift_participants.rb b/test/sets/shift_participants.rb new file mode 100644 index 00000000..a09d47f2 --- /dev/null +++ b/test/sets/shift_participants.rb @@ -0,0 +1,60 @@ +module Contexts + module ShiftParticipants + def create_shift_participants + + end + + def destroy_shift_participants + + end + end + end + +module Contexts + module ShiftParticipants + def create_shift_participants + + end + + def destroy_shift_participants + + end + end + end + +module Contexts + module ShiftParticipants + def create_shift_participants + + end + + def destroy_shift_participants + + end + end + end + +module Contexts + module ShiftParticipants + def create_shift_participants + + end + + def destroy_shift_participants + + end + end + end + +module Contexts + module ShiftParticipants + def create_shift_participants + + end + + def destroy_shift_participants + + end + end + end + diff --git a/test/sets/shift_types.rb b/test/sets/shift_types.rb new file mode 100644 index 00000000..df8f6578 --- /dev/null +++ b/test/sets/shift_types.rb @@ -0,0 +1,60 @@ +module Contexts + module ShiftTypes + def create_shift_types + + end + + def destroy_shift_types + + end + end + end + +module Contexts + module ShiftTypes + def create_shift_types + + end + + def destroy_shift_types + + end + end + end + +module Contexts + module ShiftTypes + def create_shift_types + + end + + def destroy_shift_types + + end + end + end + +module Contexts + module ShiftTypes + def create_shift_types + + end + + def destroy_shift_types + + end + end + end + +module Contexts + module ShiftTypes + def create_shift_types + + end + + def destroy_shift_types + + end + end + end + diff --git a/test/sets/shifts.rb b/test/sets/shifts.rb new file mode 100644 index 00000000..b025bec2 --- /dev/null +++ b/test/sets/shifts.rb @@ -0,0 +1,60 @@ +module Contexts + module Shifts + def create_shifts + + end + + def destroy_shifts + + end + end + end + +module Contexts + module Shifts + def create_shifts + + end + + def destroy_shifts + + end + end + end + +module Contexts + module Shifts + def create_shifts + + end + + def destroy_shifts + + end + end + end + +module Contexts + module Shifts + def create_shifts + + end + + def destroy_shifts + + end + end + end + +module Contexts + module Shifts + def create_shifts + + end + + def destroy_shifts + + end + end + end + diff --git a/test/sets/store_items.rb b/test/sets/store_items.rb new file mode 100644 index 00000000..d4de95b8 --- /dev/null +++ b/test/sets/store_items.rb @@ -0,0 +1,60 @@ +module Contexts + module StoreItems + def create_store_items + + end + + def destroy_store_items + + end + end + end + +module Contexts + module StoreItems + def create_store_items + + end + + def destroy_store_items + + end + end + end + +module Contexts + module StoreItems + def create_store_items + + end + + def destroy_store_items + + end + end + end + +module Contexts + module StoreItems + def create_store_items + + end + + def destroy_store_items + + end + end + end + +module Contexts + module StoreItems + def create_store_items + + end + + def destroy_store_items + + end + end + end + diff --git a/test/sets/store_purchases.rb b/test/sets/store_purchases.rb new file mode 100644 index 00000000..31b9f843 --- /dev/null +++ b/test/sets/store_purchases.rb @@ -0,0 +1,60 @@ +module Contexts + module StorePurchases + def create_store_purchases + + end + + def destroy_store_purchases + + end + end + end + +module Contexts + module StorePurchases + def create_store_purchases + + end + + def destroy_store_purchases + + end + end + end + +module Contexts + module StorePurchases + def create_store_purchases + + end + + def destroy_store_purchases + + end + end + end + +module Contexts + module StorePurchases + def create_store_purchases + + end + + def destroy_store_purchases + + end + end + end + +module Contexts + module StorePurchases + def create_store_purchases + + end + + def destroy_store_purchases + + end + end + end + diff --git a/test/sets/tasks.rb b/test/sets/tasks.rb new file mode 100644 index 00000000..547e95fd --- /dev/null +++ b/test/sets/tasks.rb @@ -0,0 +1,60 @@ +module Contexts + module Tasks + def create_tasks + + end + + def destroy_tasks + + end + end + end + +module Contexts + module Tasks + def create_tasks + + end + + def destroy_tasks + + end + end + end + +module Contexts + module Tasks + def create_tasks + + end + + def destroy_tasks + + end + end + end + +module Contexts + module Tasks + def create_tasks + + end + + def destroy_tasks + + end + end + end + +module Contexts + module Tasks + def create_tasks + + end + + def destroy_tasks + + end + end + end + diff --git a/test/sets/tool_inventories.rb b/test/sets/tool_inventories.rb new file mode 100644 index 00000000..61e1d15b --- /dev/null +++ b/test/sets/tool_inventories.rb @@ -0,0 +1,60 @@ +module Contexts + module ToolInventories + def create_tool_inventories + + end + + def destroy_tool_inventories + + end + end + end + +module Contexts + module ToolInventories + def create_tool_inventories + + end + + def destroy_tool_inventories + + end + end + end + +module Contexts + module ToolInventories + def create_tool_inventories + + end + + def destroy_tool_inventories + + end + end + end + +module Contexts + module ToolInventories + def create_tool_inventories + + end + + def destroy_tool_inventories + + end + end + end + +module Contexts + module ToolInventories + def create_tool_inventories + + end + + def destroy_tool_inventories + + end + end + end + diff --git a/test/sets/tool_inventory_tools.rb b/test/sets/tool_inventory_tools.rb new file mode 100644 index 00000000..381f437d --- /dev/null +++ b/test/sets/tool_inventory_tools.rb @@ -0,0 +1,60 @@ +module Contexts + module ToolInventoryTools + def create_tool_inventory_tools + + end + + def destroy_tool_inventory_tools + + end + end + end + +module Contexts + module ToolInventoryTools + def create_tool_inventory_tools + + end + + def destroy_tool_inventory_tools + + end + end + end + +module Contexts + module ToolInventoryTools + def create_tool_inventory_tools + + end + + def destroy_tool_inventory_tools + + end + end + end + +module Contexts + module ToolInventoryTools + def create_tool_inventory_tools + + end + + def destroy_tool_inventory_tools + + end + end + end + +module Contexts + module ToolInventoryTools + def create_tool_inventory_tools + + end + + def destroy_tool_inventory_tools + + end + end + end + diff --git a/test/sets/tool_type_certifications.rb b/test/sets/tool_type_certifications.rb new file mode 100644 index 00000000..945e48ed --- /dev/null +++ b/test/sets/tool_type_certifications.rb @@ -0,0 +1,60 @@ +module Contexts + module ToolTypeCertifications + def create_tool_type_certifications + + end + + def destroy_tool_type_certifications + + end + end + end + +module Contexts + module ToolTypeCertifications + def create_tool_type_certifications + + end + + def destroy_tool_type_certifications + + end + end + end + +module Contexts + module ToolTypeCertifications + def create_tool_type_certifications + + end + + def destroy_tool_type_certifications + + end + end + end + +module Contexts + module ToolTypeCertifications + def create_tool_type_certifications + + end + + def destroy_tool_type_certifications + + end + end + end + +module Contexts + module ToolTypeCertifications + def create_tool_type_certifications + + end + + def destroy_tool_type_certifications + + end + end + end + diff --git a/test/sets/tool_types.rb b/test/sets/tool_types.rb new file mode 100644 index 00000000..b4385bfb --- /dev/null +++ b/test/sets/tool_types.rb @@ -0,0 +1,60 @@ +module Contexts + module ToolTypes + def create_tool_types + + end + + def destroy_tool_types + + end + end + end + +module Contexts + module ToolTypes + def create_tool_types + + end + + def destroy_tool_types + + end + end + end + +module Contexts + module ToolTypes + def create_tool_types + + end + + def destroy_tool_types + + end + end + end + +module Contexts + module ToolTypes + def create_tool_types + + end + + def destroy_tool_types + + end + end + end + +module Contexts + module ToolTypes + def create_tool_types + + end + + def destroy_tool_types + + end + end + end + diff --git a/test/sets/tools.rb b/test/sets/tools.rb new file mode 100644 index 00000000..174bbb12 --- /dev/null +++ b/test/sets/tools.rb @@ -0,0 +1,60 @@ +module Contexts + module Tools + def create_tools + + end + + def destroy_tools + + end + end + end + +module Contexts + module Tools + def create_tools + + end + + def destroy_tools + + end + end + end + +module Contexts + module Tools + def create_tools + + end + + def destroy_tools + + end + end + end + +module Contexts + module Tools + def create_tools + + end + + def destroy_tools + + end + end + end + +module Contexts + module Tools + def create_tools + + end + + def destroy_tools + + end + end + end +