Skip to content
Snippets Groups Projects
Unverified Commit 9acfaa6c authored by Arnaud Levy's avatar Arnaud Levy Committed by GitHub
Browse files

Better (#2325)

parent 2eedf3ae
No related branches found
No related tags found
No related merge requests found
......@@ -14,5 +14,6 @@ class ContactDetails::Linkedin < ContactDetails::Base
.remove('linkedin.com/company/')
.remove('@')
.remove('/')
@label = CGI.unescape @label
end
end
\ No newline at end of file
......@@ -78,6 +78,8 @@ class ContactDetailsTest < ActiveSupport::TestCase
batch_test :linkedin, 'arnaudlevy', 'https://www.linkedin.com/in/arnaudlevy/', [
'https://www.linkedin.com/in/arnaudlevy/',
]
detail = service_for(:linkedin).new 'https://www.linkedin.com/in/matthieu-b%C3%A9jot-4bba9950/'
assert_equal 'matthieu-béjot-4bba9950', detail.label
end
test 'linkedin company' do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment