Sha256: 540990c13b97dac489df0bf7b012ef8d8a4929d34e32fd57524e4108ff7e122e

Contents?: true

Size: 309 Bytes

Versions: 5

Compression:

Stored size: 309 Bytes

Contents

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

class TestSettingsIO < MiniTest::Unit::TestCase

  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

5 entries across 5 versions & 1 rubygems

Version Path
sinatra-rocketio-0.2.4 test/test_settings.rb
sinatra-rocketio-0.2.3 test/test_settings.rb
sinatra-rocketio-0.2.2 test/test_settings.rb
sinatra-rocketio-0.2.1 test/test_settings.rb
sinatra-rocketio-0.2.0 test/test_settings.rb