Sha256: 6294cb1864909cd3b253f17289627291bc01a29ac8f2db161b6d9befa3cf4c97

Contents?: true

Size: 424 Bytes

Versions: 1

Compression:

Stored size: 424 Bytes

Contents

require File.expand_path(File.dirname(__FILE__)) + "/helper.rb"

class PollingTest < Test::Unit::TestCase
  def test_check_value
    assert_equal 0, Polling::Confirm::check_value(0)
    assert_equal 0, Polling::Confirm::check_value("0")
    assert_equal 60, Polling::Confirm::check_value(60)
    assert_equal 60, Polling::Confirm::check_value("60")
    assert_equal RuntimeError, Polling::Confirm::check_value(61)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
polling-0.0.2 test/test_confirm.rb