mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Support IP addresses for embeddable hosts
This commit is contained in:
parent
38c63c2185
commit
2a84db73b5
2 changed files with 15 additions and 1 deletions
|
@ -20,6 +20,12 @@ describe EmbeddableHost do
|
|||
expect(eh.host).to eq('example.com')
|
||||
end
|
||||
|
||||
it "supports ip addresses" do
|
||||
eh = EmbeddableHost.new(host: '192.168.0.1')
|
||||
expect(eh).to be_valid
|
||||
expect(eh.host).to eq('192.168.0.1')
|
||||
end
|
||||
|
||||
describe "allows_embeddable_host" do
|
||||
let!(:host) { Fabricate(:embeddable_host) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue