Skip to content
Snippets Groups Projects
Commit 1226616e authored by Thong Kuah's avatar Thong Kuah Committed by Ronald van Zon
Browse files

Add frozen_string_literal to spec/factories

parent 6d8fa576
Loading
Showing
with 40 additions and 0 deletions
# frozen_string_literal: true
FactoryBot.define do
factory :abuse_report do
reporter factory: :user
......
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
......
# frozen_string_literal: true
FactoryBot.define do
factory :application_setting do
default_projects_limit 42
......
# frozen_string_literal: true
FactoryBot.define do
factory :award_emoji do
name "thumbsup"
......
# frozen_string_literal: true
FactoryBot.define do
trait :base_badge do
link_url { generate(:url) }
......
# frozen_string_literal: true
FactoryBot.define do
factory :board do
transient do
......
# frozen_string_literal: true
FactoryBot.define do
factory :broadcast_message do
message "MyText"
......
# frozen_string_literal: true
FactoryBot.define do
factory :chat_name, class: ChatName do
user factory: :user
......
# frozen_string_literal: true
FactoryBot.define do
factory :chat_team, class: ChatTeam do
sequence(:team_id) { |n| "abcdefghijklm#{n}" }
......
# frozen_string_literal: true
FactoryBot.define do
factory :ci_bridge, class: Ci::Bridge do
name 'bridge'
......
# frozen_string_literal: true
FactoryBot.define do
factory :ci_build_trace_chunk, class: Ci::BuildTraceChunk do
build factory: :ci_build
......
# frozen_string_literal: true
FactoryBot.define do
factory :ci_build_trace_section_name, class: Ci::BuildTraceSectionName do
sequence(:name) { |n| "section_#{n}" }
......
# frozen_string_literal: true
include ActionDispatch::TestProcess
FactoryBot.define do
......
# frozen_string_literal: true
FactoryBot.define do
factory :ci_group_variable, class: Ci::GroupVariable do
sequence(:key) { |n| "VARIABLE_#{n}" }
......
# frozen_string_literal: true
include ActionDispatch::TestProcess
FactoryBot.define do
......
# frozen_string_literal: true
FactoryBot.define do
factory :ci_pipeline_schedule, class: Ci::PipelineSchedule do
cron '0 1 * * *'
......
# frozen_string_literal: true
FactoryBot.define do
factory :ci_pipeline_schedule_variable, class: Ci::PipelineScheduleVariable do
sequence(:key) { |n| "VARIABLE_#{n}" }
......
# frozen_string_literal: true
FactoryBot.define do
factory :ci_pipeline_variable, class: Ci::PipelineVariable do
sequence(:key) { |n| "VARIABLE_#{n}" }
......
# frozen_string_literal: true
FactoryBot.define do
factory :ci_empty_pipeline, class: Ci::Pipeline do
source :push
......
# frozen_string_literal: true
FactoryBot.define do
factory :ci_runner_project, class: Ci::RunnerProject do
runner factory: [:ci_runner, :project]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment