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