Add web mentions

This commit is contained in:
2023-02-18 16:52:10 +11:00
parent d1af1cac6a
commit 5b694f77cd
3 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
require "spec_helper"
RSpec.describe Adamantium::LinkFinder do
subject { described_class.new }
it "finds allowed links in a string" do
text = "Check out some of these cool websites: https://google.com https://example.com or even http://twitter.com and https://pinboard.in!"
expect(subject.call(text)).to eq ["https://example.com", "https://pinboard.in"]
end
end