Sha256: 5c44bf55209dadb52091b54d035c6067db26d91a57c102154a1a04c4bfe764df
Contents?: true
Size: 956 Bytes
Versions: 1
Compression:
Stored size: 956 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe TomcatRails::CommandLineParser do it "should override classes option" do ARGV = "--classes my_classes".split options = TomcatRails::CommandLineParser.parse options[:classes_dir].should == 'my_classes' end it "should override libs option with lib option" do ARGV = "--lib my_libs".split options = TomcatRails::CommandLineParser.parse options[:libs_dir].should == 'my_libs' end it "should override libs option with jar option" do ARGV = "--jars my_jars".split options = TomcatRails::CommandLineParser.parse options[:libs_dir].should == 'my_jars' end it "should override the config file when it's especified" do ARGV = "-f #{File.join(File.dirname(__FILE__), '..', 'web_app_mock', 'tomcat.yml')}".split options = TomcatRails::CommandLineParser.parse options[:environment].should == 'production' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
calavera-tomcat-rails-0.2.0 | spec/tomcat-rails/command_line_parser_spec.rb |