mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
16 lines
455 B
Ruby
16 lines
455 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.describe GitUrl do
|
|
it "handles the discourse github repo by ssh" do
|
|
expect(GitUrl.normalize("[email protected]:discourse/discourse.git")).to eq(
|
|
"ssh://[email protected]/discourse/discourse.git",
|
|
)
|
|
end
|
|
|
|
it "handles the discourse github repo by https" do
|
|
expect(GitUrl.normalize("https://github.com/discourse/discourse.git")).to eq(
|
|
"https://github.com/discourse/discourse.git",
|
|
)
|
|
end
|
|
end
|