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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user