to sign in page after sign up instead of root path which redirects to /about
end
def after_sign_up_path_for(_resource)
- root_path
+ new_user_session_path
end
end
end
def link_urls(html)
- auto_link(html, link: :urls, html: { rel: 'nofollow noopener' })
+ auto_link(html, link: :urls, html: { rel: 'nofollow noopener' }) do |text|
+ truncate(text.gsub(/\Ahttps?:\/\/(www\.)?/, ''), length: 30)
+ end
end
def link_mentions(html, mentions)
end
it 'contains a link' do
- expect(subject).to match('<a rel="nofollow noopener" href="http://google.com">http://google.com</a>')
+ expect(subject).to match('<a rel="nofollow noopener" href="http://google.com">google.com</a>')
end
end