fix jsxc_helper_spec and use new url_to in jsxc_helper
This commit is contained in:
parent
1bf328d294
commit
0ffe513b40
2 changed files with 2 additions and 2 deletions
|
|
@ -3,11 +3,10 @@ module JsxcHelper
|
||||||
port = AppConfig.chat.server.bosh.port
|
port = AppConfig.chat.server.bosh.port
|
||||||
bind = AppConfig.chat.server.bosh.bind
|
bind = AppConfig.chat.server.bosh.bind
|
||||||
host = AppConfig.pod_uri.host
|
host = AppConfig.pod_uri.host
|
||||||
scheme = AppConfig.pod_uri.scheme
|
|
||||||
|
|
||||||
unless AppConfig.chat.server.bosh.proxy?
|
unless AppConfig.chat.server.bosh.proxy?
|
||||||
return "http://#{host}:#{port}#{bind}"
|
return "http://#{host}:#{port}#{bind}"
|
||||||
end
|
end
|
||||||
return "#{scheme}://#{host}#{bind}"
|
AppConfig.url_to bind
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ describe JsxcHelper, :type => :helper do
|
||||||
AppConfig.chat.server.bosh.port = 1234
|
AppConfig.chat.server.bosh.port = 1234
|
||||||
AppConfig.chat.server.bosh.bind = '/bind'
|
AppConfig.chat.server.bosh.bind = '/bind'
|
||||||
AppConfig.environment.url = "https://localhost/"
|
AppConfig.environment.url = "https://localhost/"
|
||||||
|
AppConfig.instance_variable_set(:@pod_uri, nil)
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "#get_bosh_endpoint" do
|
describe "#get_bosh_endpoint" do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue