Sha256: c7eb2e03f91751d565cd9729f1cc925bc4fa0b87e944b2e82b4eb443d24f339b
Contents?: true
Size: 1.15 KB
Versions: 28
Compression:
Stored size: 1.15 KB
Contents
require File.expand_path("#{File.dirname(__FILE__)}/test_helper") class TestKeys < MiniTest::Unit::TestCase KEY_DATA = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCz29znMi/UJX/nvkRSO5FFugKhU9DkkI53E0vXUnP8zeLFxMgyUqmXryPVjWtGzz2LRWqjm14SbqHAmM44pGHVfBIp6wCKBWSUYGv/FxOulwYgtWzz4moxWLZrFyWWgJAnehcVUifHNgzKwT2ovWm2ns52681Z8yFK3K8/uLStDjLIaPePEOaxaTvgIxZNsfyEoXoHcyTPwdR1GtQuDTuDYqYmjmPCoKybYnXrTQ1QFuQxDneBkswQYSl0H2aLf3uBK4F01hr+azXQuSe39eSV4I/TqzmNJlanpILT9Jz3/J1i4r6brpF3AxLnFnb9ufIbzQAIa/VZIulfrZkcBsUl david@carbon.local" def test_delete_key_key_not_found assert_raises(Heroku::API::Errors::NotFound) do heroku.delete_key(random_name) end end def test_delete_key heroku.post_key(KEY_DATA) response = heroku.delete_key('david@carbon.local') assert_equal(200, response.status) end def test_delete_keys response = heroku.delete_keys assert_equal(200, response.status) end def test_get_keys response = heroku.get_keys assert_equal(200, response.status) end def test_post_key response = heroku.post_key(KEY_DATA) assert_equal(200, response.status) heroku.delete_key('david@carbon.local') end end
Version data entries
28 entries across 28 versions & 2 rubygems