Sha256: eb643649abda89f4e95a5ce25c8ee4c1554b90dc34d10fe692a51345ca4df94e

Contents?: true

Size: 369 Bytes

Versions: 5

Compression:

Stored size: 369 Bytes

Contents

require 'test/unit'
require 'monitr-rails'

class MonitrRailsTest < Test::Unit::TestCase
  def test_monitr_connectivity
    assert_equal "nack\n",
      connect_to_monitr
  end

  def connect_to_monitr
    begin
      url = "http://events.monitr.com/cgi-bin/monitr"
      fp = open(url)
      data = fp.read
      fp.close
    rescue
    end

    return data
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
monitr-rails-1.2.5 test/test_monitr-rails.rb
monitr-rails-1.2.4 test/test_monitr-rails.rb
monitr-rails-1.2.3 test/test_monitr-rails.rb
monitr-rails-1.2.2 test/test_monitr-rails.rb
monitr-rails-1.2.1 test/test_monitr-rails.rb