require 'minitest'
require 'hypertest'

describe Hypertest::MasterOptionParser do
  it "should correctly parse '-p' option" do
    options = Hypertest::MasterOptionParser.parse(["-p", "1337"])
    options[:port].must_equal 1337
  end

  it "should correctly parse '-ip' option" do
    options = Hypertest::MasterOptionParser.parse(["-a", "127.0.0.1"])
    options[:ip].must_equal "127.0.0.1"
  end
end
