Sha256: c556f7c1560f8eb25074b7c67c32fbece95ac3e3b3321404a8263acaa550bc18
Contents?: true
Size: 691 Bytes
Versions: 2
Compression:
Stored size: 691 Bytes
Contents
require 'spec_helper' describe CommandLineParser do describe 'parse' do it 'should read http-server option' do args = ['--http-server', 'server'] CommandLineParser.parse(args)[:http_server].should eq('server') end it 'should read http-port option' do args = ['--http-port', '2222'] CommandLineParser.parse(args)[:http_port].should eq(2222) end it 'should read host option' do args = ['--host', 'redisdb'] CommandLineParser.parse(args)[:redis_host].should eq('redisdb') end it 'should read port option' do args = ['--port', '4444'] CommandLineParser.parse(args)[:redis_port].should eq(4444) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
redis_monitor-0.0.5 | spec/server/command_line_parser_spec.rb |
redis_monitor-0.0.4 | spec/server/command_line_parser_spec.rb |