Sha256: 5eac1e1c1b19fe15fd57c77349d8d435b4422c4136c6de3157c119117a0d4192

Contents?: true

Size: 544 Bytes

Versions: 5

Compression:

Stored size: 544 Bytes

Contents

require 'test_helper'
require 'jubilee/cli'

class TestJubileeCLI < MiniTest::Unit::TestCase
  def test_parse_options
    cli = Jubilee::CLI.new(["app.ru"])
    cli.parse_options
    assert_equal "app.ru", cli.options[:rackup]
  end

  def test_chdir
    cli = Jubilee::CLI.new(["--dir", "test", "app.ru"])
    cli.parse_options
    assert_equal "test", cli.options[:chdir]
  end

  def test_eventbus_prefix
    cli = Jubilee::CLI.new(["--eventbus", "/eb"])
    cli.parse_options
    assert_equal "/eb", cli.options[:eventbus_prefix]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jubilee-2.1.0.Alpha1-java test/jubilee/test_cli.rb
jubilee-2.0.0-java test/jubilee/test_cli.rb
jubilee-2.0.0.beta-java test/jubilee/test_cli.rb
jubilee-2.0.0.alpha1-java test/jubilee/test_cli.rb
jubilee-1.1.3-java test/jubilee/test_cli.rb