fix tests with output of next build date for cron jobs
This commit is contained in:
parent
00e15de083
commit
e9356970f8
|
@ -38,7 +38,8 @@ describe Travis::API::V3::Services::Cron::Create do
|
||||||
"@representation" => "minimal",
|
"@representation" => "minimal",
|
||||||
"name" => "#{branch.name}" },
|
"name" => "#{branch.name}" },
|
||||||
"interval" => "monthly",
|
"interval" => "monthly",
|
||||||
"disable_by_build" => false
|
"disable_by_build" => false,
|
||||||
|
"next_build_time" => current_cron.next_build_time.strftime('%Y-%m-%dT%H:%M:%SZ')
|
||||||
}}
|
}}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,8 @@ describe Travis::API::V3::Services::Cron::Delete do
|
||||||
"@representation" => "minimal",
|
"@representation" => "minimal",
|
||||||
"name" => branch.name },
|
"name" => branch.name },
|
||||||
"interval" => "daily",
|
"interval" => "daily",
|
||||||
"disable_by_build" => true
|
"disable_by_build" => true,
|
||||||
|
"next_build_time" => cron.next_build_time.strftime('%Y-%m-%dT%H:%M:%SZ')
|
||||||
}}
|
}}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,8 @@ describe Travis::API::V3::Services::Cron::Find do
|
||||||
"@representation" => "minimal",
|
"@representation" => "minimal",
|
||||||
"name" => branch.name },
|
"name" => branch.name },
|
||||||
"interval" => "daily",
|
"interval" => "daily",
|
||||||
"disable_by_build" => true
|
"disable_by_build" => true,
|
||||||
|
"next_build_time" => cron.next_build_time.strftime('%Y-%m-%dT%H:%M:%SZ')
|
||||||
}}
|
}}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -87,7 +88,8 @@ describe Travis::API::V3::Services::Cron::Find do
|
||||||
"@representation" => "minimal",
|
"@representation" => "minimal",
|
||||||
"name" => branch.name },
|
"name" => branch.name },
|
||||||
"interval" => "daily",
|
"interval" => "daily",
|
||||||
"disable_by_build" => true
|
"disable_by_build" => true,
|
||||||
|
"next_build_time" => cron.next_build_time.strftime('%Y-%m-%dT%H:%M:%SZ')
|
||||||
}}
|
}}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,8 @@ describe Travis::API::V3::Services::Cron::ForBranch do
|
||||||
"@representation" => "minimal",
|
"@representation" => "minimal",
|
||||||
"name" => branch.name },
|
"name" => branch.name },
|
||||||
"interval" => "daily",
|
"interval" => "daily",
|
||||||
"disable_by_build" => true
|
"disable_by_build" => true,
|
||||||
|
"next_build_time" => cron.next_build_time.strftime('%Y-%m-%dT%H:%M:%SZ')
|
||||||
}}
|
}}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,8 @@ describe Travis::API::V3::Services::Crons::ForRepository do
|
||||||
"@representation" => "minimal",
|
"@representation" => "minimal",
|
||||||
"name" => "#{branch.name}" },
|
"name" => "#{branch.name}" },
|
||||||
"interval" => "daily",
|
"interval" => "daily",
|
||||||
"disable_by_build" => true
|
"disable_by_build" => true,
|
||||||
|
"next_build_time" => cron.next_build_time.strftime('%Y-%m-%dT%H:%M:%SZ')
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user