Remove trigger_schedule_attributes and factory :ci_trigger_for_trigger_schedule

This commit is contained in:
Shinya Maeda 2017-07-13 21:17:47 +09:00
parent 3c197e7482
commit b038bcf710
2 changed files with 1 additions and 9 deletions

View file

@ -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

View file

@ -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