fix tests with output of next build date for cron jobs

This commit is contained in:
Steffen Kötte 2016-01-14 16:16:15 +01:00
parent 00e15de083
commit e9356970f8
5 changed files with 12 additions and 6 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -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')
} }
] ]
}} }}