Sha256: f8abf40a470309871407dca0e8aca4b70ad0d0a223e40e056c094be07a3ecdd8
Contents?: true
Size: 488 Bytes
Versions: 4
Compression:
Stored size: 488 Bytes
Contents
HERE = File.dirname(__FILE__) require File.join(HERE, 'helper') class TestGmanFilter < Minitest::Test txt_path = fixture_path 'obama.txt' exec_path = bin_path 'gman_filter' should 'remove non-gov/mil addresses' do output, _status = Open3.capture2e('bundle', 'exec', exec_path, txt_path) expected = %w( mr.senator@obama.senate.gov president@whitehouse.gov commander.in.chief@us.army.mil ).join("\n") + "\n" assert_equal output, expected end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gman-7.0.1 | test/test_gman_filter.rb |
gman-7.0.0 | test/test_gman_filter.rb |
gman-6.0.1 | test/test_gman_filter.rb |
gman-6.0.0 | test/test_gman_filter.rb |