Sha256: 2f36d6ceafd701501d251e331d6b6da1c2667e45a887f9a556b8cbc6250cf9be

Contents?: true

Size: 681 Bytes

Versions: 1

Compression:

Stored size: 681 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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
calavera-tomcat-rails-0.1.2 spec/tomcat-rails/command_line_parser_spec.rb