v3 fix spacing on spec payloads

This commit is contained in:
carlad 2015-08-26 20:39:38 +02:00
parent 64673eb971
commit 5893241ca5
2 changed files with 57 additions and 57 deletions

View File

@ -84,37 +84,37 @@ describe Travis::API::V3::Services::Builds::Find do
"committed_at" => "2010-11-12T12:55:00Z"}, "committed_at" => "2010-11-12T12:55:00Z"},
"jobs" =>[ "jobs" =>[
{ {
"@type"=>"job", "@type" => "job",
"@representation"=>"minimal", "@representation"=> "minimal",
"id"=>jobs[0].id, "id" => jobs[0].id,
"number"=>"3.1", "number" => jobs[0].number,
"state"=>"configured", "state" => "configured",
"started_at"=>"2010-11-12T13:00:00Z", "started_at" => "2010-11-12T13:00:00Z",
"finished_at"=>nil}, "finished_at" => nil},
{ {
"@type"=>"job", "@type" => "job",
"@representation"=>"minimal", "@representation"=> "minimal",
"id"=>jobs[1].id, "id" => jobs[1].id,
"number"=>"3.2", "number" => jobs[1].number,
"state"=>"configured", "state" => "configured",
"started_at"=>"2010-11-12T13:00:00Z", "started_at" => "2010-11-12T13:00:00Z",
"finished_at"=>nil}, "finished_at" => nil},
{ {
"@type"=>"job", "@type" => "job",
"@representation"=>"minimal", "@representation"=> "minimal",
"id"=>jobs[2].id, "id" => jobs[2].id,
"number"=>"3.3", "number" => jobs[2].number,
"state"=>"configured", "state" => "configured",
"started_at"=>"2010-11-12T13:00:00Z", "started_at" => "2010-11-12T13:00:00Z",
"finished_at"=>nil}, "finished_at" => nil},
{ {
"@type"=>"job", "@type" => "job",
"@representation"=>"minimal", "@representation"=> "minimal",
"id"=>jobs[3].id, "id" => jobs[3].id,
"number"=>"3.4", "number" => jobs[3].number,
"state"=>"configured", "state" => "configured",
"started_at"=>"2010-11-12T13:00:00Z", "started_at" => "2010-11-12T13:00:00Z",
"finished_at"=>nil}] "finished_at" => nil}]
}] }]
}} }}
end end
@ -186,37 +186,37 @@ describe Travis::API::V3::Services::Builds::Find do
"committed_at" => "2010-11-12T12:55:00Z"}, "committed_at" => "2010-11-12T12:55:00Z"},
"jobs" =>[ "jobs" =>[
{ {
"@type"=>"job", "@type" => "job",
"@representation"=>"minimal", "@representation"=> "minimal",
"id"=>jobs[0].id, "id" => jobs[0].id,
"number"=>"3.1", "number" => jobs[0].number,
"state"=>"configured", "state" => "configured",
"started_at"=>"2010-11-12T13:00:00Z", "started_at" => "2010-11-12T13:00:00Z",
"finished_at"=>nil}, "finished_at" => nil},
{ {
"@type"=>"job", "@type" => "job",
"@representation"=>"minimal", "@representation"=> "minimal",
"id"=>jobs[1].id, "id" => jobs[1].id,
"number"=>"3.2", "number" => jobs[1].number,
"state"=>"configured", "state" => "configured",
"started_at"=>"2010-11-12T13:00:00Z", "started_at" => "2010-11-12T13:00:00Z",
"finished_at"=>nil}, "finished_at" => nil},
{ {
"@type"=>"job", "@type" => "job",
"@representation"=>"minimal", "@representation"=> "minimal",
"id"=>jobs[2].id, "id" => jobs[2].id,
"number"=>"3.3", "number" => jobs[2].number,
"state"=>"configured", "state" => "configured",
"started_at"=>"2010-11-12T13:00:00Z", "started_at" => "2010-11-12T13:00:00Z",
"finished_at"=>nil}, "finished_at" => nil},
{ {
"@type"=>"job", "@type" => "job",
"@representation"=>"minimal", "@representation"=> "minimal",
"id"=>jobs[3].id, "id" => jobs[3].id,
"number"=>"3.4", "number" => jobs[3].number,
"state"=>"configured", "state" => "configured",
"started_at"=>"2010-11-12T13:00:00Z", "started_at" => "2010-11-12T13:00:00Z",
"finished_at"=>nil}] "finished_at" => nil}]
}] }]
}} }}
end end

View File

@ -15,7 +15,7 @@ describe Travis::API::V3::Services::Owner::Repositories do
example { expect(JSON.load(body)).to be == { example { expect(JSON.load(body)).to be == {
"@type" => "repositories", "@type" => "repositories",
"@href" => "/v3/owner/svenfuchs/repos", "@href" => "/v3/owner/svenfuchs/repos",
"@representation" => "standard", "@representation" => "standard",
"repositories" => [{ "repositories" => [{
"@type" => "repository", "@type" => "repository",
"@href" => "/v3/repo/#{repo.id}", "@href" => "/v3/repo/#{repo.id}",