mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Allow ports for embed host IPs
This commit is contained in:
parent
61a7162c01
commit
ae957bca25
2 changed files with 7 additions and 1 deletions
|
@ -38,6 +38,12 @@ describe EmbeddableHost do
|
|||
expect(eh.host).to eq('localhost:8080')
|
||||
end
|
||||
|
||||
it "supports ports for ip addresses" do
|
||||
eh = EmbeddableHost.new(host: '192.168.0.1:3000')
|
||||
expect(eh).to be_valid
|
||||
expect(eh.host).to eq('192.168.0.1:3000')
|
||||
end
|
||||
|
||||
it "supports subdomains of localhost" do
|
||||
eh = EmbeddableHost.new(host: 'discourse.localhost')
|
||||
expect(eh).to be_valid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue