Sha256: 2a63de5cc4fc2cdd39e25dcbc99f8917314315104ab074aacb91a142f68586d8

Contents?: true

Size: 921 Bytes

Versions: 6

Compression:

Stored size: 921 Bytes

Contents

require 'test_helper'

describe Fanforce::Base::Domains do

  [:test,:development,:staging,:production].each do |rack_env| it "should return domains for #{rack_env}" do
    ENV['RACK_ENV'] = rack_env.to_s
    assert Fanforce.environ.is_a?(Symbol)

    assert Fanforce.base_domain == Fanforce::Base::DomainEnvironments.method(rack_env.to_s).call[:base]
    assert Fanforce.default_short_domain == Fanforce::Base::DomainEnvironments.method(rack_env.to_s).call[:default_short_domain]
    assert Fanforce.apps_base_domain == Fanforce::Base::DomainEnvironments.method(rack_env.to_s).call[:apps_base]

    assert Fanforce.api_domain
    assert Fanforce.api_domain_ssl
    assert Fanforce.eye_domain
    assert Fanforce.controller_domain
    assert Fanforce.uranium_domain
    assert Fanforce.website_domain
    assert Fanforce.developer_domain
    assert Fanforce.client_domain
    assert Fanforce.signup_domain
  end end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fanforce-base-1.3.0 test/base/domains_test.rb
fanforce-base-1.2.3 test/base/domains_test.rb
fanforce-base-1.2.2 test/base/domains_test.rb
fanforce-base-1.2.1 test/base/domains_test.rb
fanforce-base-1.2.0 test/base/domains_test.rb
fanforce-base-1.1.0 test/base/domains_test.rb