feat: Generate short url view

stimulus links controller, tailwindcss setup, links controller post route, tests updated

Generate short links view
This commit is contained in:
Juan Rodriguez
2021-06-14 00:41:53 -05:00
parent e50da9b3e2
commit 3e8bdee17a
24 changed files with 527 additions and 89 deletions
-11
View File
@@ -24,15 +24,4 @@ class LinkTest < ActiveSupport::TestCase
link = links(:one)
assert link.slug, 'Slug not generated on save a new link'
end
test 'should get shorten url of existing url' do
link = links(:one)
url = link.url
assert Link.shorten(url), 'Shorten url not found'
end
test 'should get shorten url and create a link' do
url = 'https://test.com'
assert Link.shorten(url), 'Link not created'
end
end