Sha256: cce640de90a359d405a0fe41feb942fa74d552541c0bc274e45d4ab4d9e2ddd5

Contents?: true

Size: 705 Bytes

Versions: 16

Compression:

Stored size: 705 Bytes

Contents

require 'test_helper'

class MLSTest < Minitest::Test

  def setup
    MLS.url = "http://test_api_key@testhost.com"
    MLS.instance.instance_variable_set(:@server_config, nil)
  end


  # MLS.asset_host ============================================================

  test '#asset_host' do
    stub_request(:get, "http://testhost.com/config").to_return(:body => '{"asset_host": "myhost"}')

    assert_equal( 'myhost', MLS.asset_host )
  end

  # MLS.image_host ============================================================

  test '#image_host' do
    stub_request(:get, "http://testhost.com/config").to_return(:body => '{"image_host": "myhost"}')

    assert_equal( 'myhost', MLS.image_host )
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mls-1.9.0 test/mls_test.rb
mls-1.8.0 test/mls_test.rb
mls-1.7.0 test/mls_test.rb
mls-1.6.0 test/mls_test.rb
mls-1.5.1 test/mls_test.rb
mls-1.5.0 test/mls_test.rb
mls-1.4.3 test/mls_test.rb
mls-1.4.0 test/mls_test.rb
mls-1.3.0 test/mls_test.rb
mls-1.2.0 test/mls_test.rb
mls-1.1.4 test/mls_test.rb
mls-1.1.3 test/mls_test.rb
mls-1.1.2 test/mls_test.rb
mls-1.1.1 test/mls_test.rb
mls-1.1.0 test/mls_test.rb
mls-1.0.0 test/mls_test.rb