Sha256: 08757cc98eedb3b6e97d1166cddaae0f7c81a547c67e7a25adad5861c2fd1f69
Contents?: true
Size: 1.13 KB
Versions: 8
Compression:
Stored size: 1.13 KB
Contents
require "#{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
8 entries across 8 versions & 1 rubygems