Sha256: d90b0047cdcf8689f31f31fc9f8e2a6bc1e486f97d187f381be38a8ecc6a61a4
Contents?: true
Size: 540 Bytes
Versions: 2
Compression:
Stored size: 540 Bytes
Contents
require 'test_helper' class ParserTest < Test::Unit::TestCase context "A Parser instance" do context "with config file loaded and the -f'format' option set" do setup do AbsoluteRenamer::Config.load('conf/absrenamer/absrenamer.conf') ARGV << '-f' ARGV << 'format' end should "be able to parse the format from the command line options" do AbsoluteRenamer::Parser.parse_cmd_line assert_equal('format', AbsoluteRenamer::Config[:options][:format]) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
AbsoluteRenamer-0.10.0 | test/parser_test.rb |
AbsoluteRenamer-0.10.1 | test/parser_test.rb |