summaryrefslogtreecommitdiff
path: root/test/functional/keys_controller_test.rb
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2017-03-07 17:20:18 +0000
committerazul <azul@riseup.net>2017-03-07 17:20:18 +0000
commit67824594246aee807ebacdf61c4e2d0a136eab73 (patch)
tree9cb82ea3db87102ba96a5eb9bed895715a799ec8 /test/functional/keys_controller_test.rb
parent1c4a107578d1faad65af3a2cf3bba8a910356ae8 (diff)
parent41d9a911f0dfc88bd22e2e09abf6b4c4c1a2bec4 (diff)
Merge branch 'username-with-dot' into 'master'
Fix keys route to accept usernames with dots See merge request !14
Diffstat (limited to 'test/functional/keys_controller_test.rb')
-rw-r--r--test/functional/keys_controller_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/keys_controller_test.rb b/test/functional/keys_controller_test.rb
index 863be93..f5e2691 100644
--- a/test/functional/keys_controller_test.rb
+++ b/test/functional/keys_controller_test.rb
@@ -2,6 +2,10 @@ require 'test_helper'
class KeysControllerTest < ActionController::TestCase
+ test "get key for username with dot" do
+ assert_recognizes({controller: 'keys', action: 'show', login: 'username.with.dot'}, 'key/username.with.dot')
+ end
+
test "get existing public key" do
public_key = 'my public key'
@user = stub_record :user, :public_key => public_key