Sha256: 10e68237550ce40b3683e9b2bade3d025eb6f3980e9d966250376c381b544608
Contents?: true
Size: 385 Bytes
Versions: 4
Compression:
Stored size: 385 Bytes
Contents
require_relative '../spec_helper' describe "parse_options" do describe "parses" do it "-p port" do Class.new(Angelo::Base) do parse_options("-p 12345".split) port.must_equal 12345 end end it "-o addr" do Class.new(Angelo::Base) do parse_options("-o 3.2.1.0".split) addr.must_equal "3.2.1.0" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
angelo-0.5.1 | test/angelo/options_spec.rb |
angelo-0.5.0 | test/angelo/options_spec.rb |
angelo-0.4.1 | test/angelo/options_spec.rb |
angelo-0.4.0 | test/angelo/options_spec.rb |