Sha256: 8dcca5aa4311edd8281fe6d97516e784ded4ca9ef9c2240d4edc470e51fa0e63
Contents?: true
Size: 630 Bytes
Versions: 5
Compression:
Stored size: 630 Bytes
Contents
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__)) require 'test_helper' context 'Parsing command line args' do setup do Rip::Commands.send(:public, :parse_args) end test "works" do assert_equal ["install", { :f => true }, []], Rip::Commands.parse_args(%w( install -f )) assert_equal ["install", { :f => "force" }, []], Rip::Commands.parse_args(%w( install -f=force )) assert_equal ["install", { :f => true }, [ "force", "name" ]], Rip::Commands.parse_args(%w( install -f force name )) assert_equal ["install", {}, [ "something" ]], Rip::Commands.parse_args(%w( install something )) end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rip-0.0.4 | test/commands_test.rb |
rip-0.0.5 | test/commands_test.rb |
rip-0.0.3 | test/commands_test.rb |
rip-0.0.2 | test/commands_test.rb |
rip-0.0.1 | test/commands_test.rb |