Skip to content
Snippets Groups Projects
Commit 94bb6604 authored by Thong Kuah's avatar Thong Kuah :speech_balloon:
Browse files

Add frozen_string_literal to spec/factories

parent 9e91ae15
No related branches found
No related tags found
No related merge requests found
Showing
with 40 additions and 0 deletions
# frozen_string_literal: true
FactoryBot.define do
factory :abuse_report do
reporter factory: :user
Loading
Loading
# frozen_string_literal: true
# Read about factories at https://github.com/thoughtbot/factory_bot
 
FactoryBot.define do
Loading
Loading
# frozen_string_literal: true
FactoryBot.define do
factory :application_setting do
default_projects_limit 42
Loading
Loading
# frozen_string_literal: true
FactoryBot.define do
factory :award_emoji do
name "thumbsup"
Loading
Loading
# frozen_string_literal: true
FactoryBot.define do
trait :base_badge do
link_url { generate(:url) }
Loading
Loading
# frozen_string_literal: true
FactoryBot.define do
factory :board do
transient do
Loading
Loading
# frozen_string_literal: true
FactoryBot.define do
factory :broadcast_message do
message "MyText"
Loading
Loading
# frozen_string_literal: true
FactoryBot.define do
factory :chat_name, class: ChatName do
user factory: :user
Loading
Loading
# frozen_string_literal: true
FactoryBot.define do
factory :chat_team, class: ChatTeam do
sequence(:team_id) { |n| "abcdefghijklm#{n}" }
Loading
Loading
# frozen_string_literal: true
FactoryBot.define do
factory :ci_bridge, class: Ci::Bridge do
name 'bridge'
Loading
Loading
# frozen_string_literal: true
FactoryBot.define do
factory :ci_build_trace_chunk, class: Ci::BuildTraceChunk do
build factory: :ci_build
Loading
Loading
# frozen_string_literal: true
FactoryBot.define do
factory :ci_build_trace_section_name, class: Ci::BuildTraceSectionName do
sequence(:name) { |n| "section_#{n}" }
Loading
Loading
# frozen_string_literal: true
include ActionDispatch::TestProcess
 
FactoryBot.define do
Loading
Loading
# frozen_string_literal: true
FactoryBot.define do
factory :ci_group_variable, class: Ci::GroupVariable do
sequence(:key) { |n| "VARIABLE_#{n}" }
Loading
Loading
# frozen_string_literal: true
include ActionDispatch::TestProcess
 
FactoryBot.define do
Loading
Loading
# frozen_string_literal: true
FactoryBot.define do
factory :ci_pipeline_schedule, class: Ci::PipelineSchedule do
cron '0 1 * * *'
Loading
Loading
# frozen_string_literal: true
FactoryBot.define do
factory :ci_pipeline_schedule_variable, class: Ci::PipelineScheduleVariable do
sequence(:key) { |n| "VARIABLE_#{n}" }
Loading
Loading
# frozen_string_literal: true
FactoryBot.define do
factory :ci_pipeline_variable, class: Ci::PipelineVariable do
sequence(:key) { |n| "VARIABLE_#{n}" }
Loading
Loading
# frozen_string_literal: true
FactoryBot.define do
factory :ci_empty_pipeline, class: Ci::Pipeline do
source :push
Loading
Loading
# frozen_string_literal: true
FactoryBot.define do
factory :ci_runner_project, class: Ci::RunnerProject do
runner factory: [:ci_runner, :project]
Loading
Loading
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