Sha256: 94933fe62072e8d23e90c41385d2dde17fb23021dddb917b5cb2b51e7a79a016

Contents?: true

Size: 377 Bytes

Versions: 3

Compression:

Stored size: 377 Bytes

Contents

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

class TestSettingsIO < MiniTest::Unit::TestCase

  def setup
    App.start
  end

  def teardown
    App.stop
  end

  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

3 entries across 3 versions & 1 rubygems

Version Path
sinatra-rocketio-0.1.2 test/test_settings.rb
sinatra-rocketio-0.1.1 test/test_settings.rb
sinatra-rocketio-0.1.0 test/test_settings.rb