Sha256: 7df820b244aa49580b390d201213714ae8db6ba7643d07addc3d1d48df9cf3c0
Contents?: true
Size: 1.54 KB
Versions: 3
Compression:
Stored size: 1.54 KB
Contents
require 'spec_helper' require 'livefyre' require 'livefyre/api/domain' require 'jwt' include Livefyre describe Livefyre::Domain do before(:each) do @network = Livefyre.get_network(NETWORK_NAME, NETWORK_KEY) @site = @network.get_site(SITE_ID, SITE_KEY) @collection = @site.build_comments_collection(TITLE, ARTICLE_ID, URL) end it 'should correctly form quill URLs from core objects' do quill_domain_ssl = "https://#{@network.network_name}.quill.fyre.co" expect(Domain::quill(@network)).to eq(quill_domain_ssl) expect(Domain::quill(@site)).to eq(quill_domain_ssl) expect(Domain::quill(@collection)).to eq(quill_domain_ssl) quill_domain = "http://quill.#{@network.network_name}.fyre.co" @network.ssl = false expect(Domain::quill(@network)).to eq(quill_domain) expect(Domain::quill(@site)).to eq(quill_domain) expect(Domain::quill(@collection)).to eq(quill_domain) end it 'should correctly form bootstrap URLs from core objects' do bootstrap_domain_ssl = "https://#{@network.network_name}.bootstrap.fyre.co" expect(Domain::bootstrap(@network)).to eq(bootstrap_domain_ssl) expect(Domain::bootstrap(@site)).to eq(bootstrap_domain_ssl) expect(Domain::bootstrap(@collection)).to eq(bootstrap_domain_ssl) bootstrap_domain = "http://bootstrap.#{@network.network_name}.fyre.co" @network.ssl = false expect(Domain::bootstrap(@network)).to eq(bootstrap_domain) expect(Domain::bootstrap(@site)).to eq(bootstrap_domain) expect(Domain::bootstrap(@collection)).to eq(bootstrap_domain) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
livefyre-2.0.2 | spec/livefyre/api/domain_spec.rb |
livefyre-2.0.1 | spec/livefyre/api/domain_spec.rb |
livefyre-2.0.0 | spec/livefyre/api/domain_spec.rb |