Sha256: 267a22a015291f0f804abb939be6cfa129f1afe59847abec50c4b79568629a9f

Contents?: true

Size: 296 Bytes

Versions: 1

Compression:

Stored size: 296 Bytes

Contents

require 'test/unit'

class TestCli < Test::Unit::TestCase
  def test_slave_mode
    output = %x(is_master 10.255.255.0 echo 'GOOD!')
    assert_match('I am slave', output)
  end

  def test_master_mode
    output = %x(is_master 127.0.0.1 echo 'GOOD!')
    assert_match('GOOD!', output)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
is_master-1.0.0 test/test_cli.rb