Sha256: 76764adaf379bf6e2315839d65aee0144f45ef20eab20c8083366aa599f43c42

Contents?: true

Size: 299 Bytes

Versions: 6

Compression:

Stored size: 299 Bytes

Contents

require File.expand_path 'test_helper', File.dirname(__FILE__)

class TestSettingsIO < MiniTest::Test

  def test_settings
    res = JSON.parse HTTParty.get("#{App.url}/rocketio/settings").body
    assert App.websocketio_url == res['websocket']
    assert App.cometio_url == res['comet']
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sinatra-rocketio-0.3.3 test/test_settings.rb
sinatra-rocketio-0.3.2 test/test_settings.rb
sinatra-rocketio-0.3.1 test/test_settings.rb
sinatra-rocketio-0.3.0 test/test_settings.rb
sinatra-rocketio-0.2.6 test/test_settings.rb
sinatra-rocketio-0.2.5 test/test_settings.rb