Remove trigger_schedule_attributes and factory :ci_trigger_for_trigger_schedule
This commit is contained in:
parent
3c197e7482
commit
b038bcf710
2 changed files with 1 additions and 9 deletions
|
@ -69,8 +69,7 @@ class Projects::TriggersController < Projects::ApplicationController
|
|||
|
||||
def trigger_params
|
||||
params.require(:trigger).permit(
|
||||
:description,
|
||||
trigger_schedule_attributes: [:id, :active, :cron, :cron_timezone, :ref]
|
||||
:description
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -2,13 +2,6 @@ FactoryGirl.define do
|
|||
factory :ci_trigger_without_token, class: Ci::Trigger do
|
||||
factory :ci_trigger do
|
||||
sequence(:token) { |n| "token#{n}" }
|
||||
|
||||
factory :ci_trigger_for_trigger_schedule do
|
||||
token { SecureRandom.hex(15) }
|
||||
owner factory: :user
|
||||
project factory: :project
|
||||
ref 'master'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue