Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-17 15:26:18 +0300
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-30 17:55:09 +0300
commitdf6040bbd41a639b3d0aa339b2dc0e84d67b811b (patch)
treece38cc4c45b360436ec3fa4d850ef46281415e2c /spec/requests/api
parentc7fc65e0672a3c88e15f033be3b4d4258bc36e2f (diff)
zj keen eye2
Diffstat (limited to 'spec/requests/api')
-rw-r--r--spec/requests/api/pipeline_schedules_spec.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/spec/requests/api/pipeline_schedules_spec.rb b/spec/requests/api/pipeline_schedules_spec.rb
index 7b7bdbc7c74..34c4fcfcae1 100644
--- a/spec/requests/api/pipeline_schedules_spec.rb
+++ b/spec/requests/api/pipeline_schedules_spec.rb
@@ -160,15 +160,10 @@ describe API::PipelineSchedules do
it 'updates cron' do
put api("/projects/#{project.id}/pipeline_schedules/#{pipeline_schedule.id}", developer),
cron: '1 2 3 4 *'
- pipeline_schedule.reload
expect(response).to have_http_status(:ok)
expect(response).to match_response_schema('pipeline_schedule')
expect(json_response['cron']).to eq('1 2 3 4 *')
- expect(pipeline_schedule.next_run_at.min).to eq(1)
- expect(pipeline_schedule.next_run_at.hour).to eq(2)
- expect(pipeline_schedule.next_run_at.day).to eq(3)
- expect(pipeline_schedule.next_run_at.month).to eq(4)
end
context 'when cron has validation error' do
@@ -208,7 +203,7 @@ describe API::PipelineSchedules do
it 'updates owner' do
post api("/projects/#{project.id}/pipeline_schedules/#{pipeline_schedule.id}/take_ownership", developer)
- expect(response).to have_http_status(:ok)
+ expect(response).to have_http_status(:created)
expect(response).to match_response_schema('pipeline_schedule')
end
end