key_test.rb revision 560baaad7d614c8aa6b7871e3a99ce33a137d93b
require 'test_helper'
context 'creating a key' do
setup do
end
context 'that is valid' do
setup do
@key = @user.keys.create! \
name: 'My ecdsa key',
key: 'ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFoY047dBuHiWYi67TgKG0oKinCH0cNgJZu3lGIiUXCK0oXqktFrxeJjJnF9VG0ZLp+7tLl+mvmunNfBDVG9b7E= test@example'
end
should 'have fingerprint' do
end
should 'have shell_id' do
end
end
context 'that is invalid' do
setup do
@key = @user.keys.create \
name: 'My ecdsa key',
key: 'ecdsa-sha2-nistp256 AAAAE2VjZtbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFoY047dBuHiWYi67TgKG0oKinCH0cNgJZu3lGIiUXCK0oXqktFrxeJjJnF9VG0ZLp+7tLl+mvmunNfBDVG9b7E= test@example'
end
should 'have invalid key' do
end
should 'have no fingerprint' do
end
end
end
end