travis-api/spec/unit/api/v2/http/ssl_key_spec.rb

13 lines
276 B
Ruby

require 'spec_helper'
describe Travis::Api::V2::Http::Repository do
include Travis::Testing::Stubs
include Support::Formats
let(:data) { Travis::Api::V2::Http::SslKey.new(stub_key).data }
it 'key' do
data['key'].should == '-----BEGIN PUBLIC KEY-----'
end
end