travis-api/spec/unit/serialize/v2/http/caches_spec.rb
2016-06-19 14:35:54 +02:00

15 lines
406 B
Ruby

describe Travis::Api::Serialize::V2::Http::Caches do
include Travis::Testing::Stubs, Support::Formats
let(:data) { described_class.new([cache]).data }
specify 'caches' do
data['caches'].should be == [{
"repository_id" => 1,
"size" => 1000,
"slug" => "cache",
"branch" => "master",
"last_modified" => "1970-01-01T00:00:00Z"
}]
end
end