Sha256: fa34872d90bb67777de6ff7ed5ef1e145de74b8996264da9172e151a506dbb88

Contents?: true

Size: 498 Bytes

Versions: 41

Compression:

Stored size: 498 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../../../test_helper')

describe ::Inch::CLI::Command::Options::BaseObject do
  it "should run parse without errors" do
    @options = ::Inch::CLI::Command::Options::BaseObject.new
    @options.parse(["--no-color"])
  end

  it "should interpret options" do
    @options = ::Inch::CLI::Command::Options::BaseObject.new
    @options.parse(["Foo", "Foo::Bar", "--no-color"])
    assert_equal ["Foo", "Foo::Bar"], @options.object_names
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
inch-0.5.0.rc3 test/unit/cli/command/options/base_object_test.rb
inch-0.5.0.rc2 test/unit/cli/command/options/base_object_test.rb
inch-0.5.0.rc1 test/unit/cli/command/options/base_object_test.rb
inch-0.4.6 test/unit/cli/command/options/base_object_test.rb
inch-0.4.5 test/unit/cli/command/options/base_object_test.rb
inch-0.4.4 test/unit/cli/command/options/base_object_test.rb
inch-0.4.4.rc4 test/unit/cli/command/options/base_object_test.rb
inch-0.4.4.rc3 test/unit/cli/command/options/base_object_test.rb
inch-0.4.4.rc2 test/unit/cli/command/options/base_object_test.rb
inch-0.4.4.rc1 test/unit/cli/command/options/base_object_test.rb
inch-0.4.3 test/unit/cli/command/options/base_object_test.rb
inch-0.4.3.rc2 test/unit/cli/command/options/base_object_test.rb
inch-0.4.3.rc1 test/unit/cli/command/options/base_object_test.rb
inch-0.4.2 test/unit/cli/command/options/base_object_test.rb
inch-0.4.1 test/unit/cli/command/options/base_object_test.rb
inch-0.4.0 test/unit/cli/command/options/base_object_test.rb
inch-0.4.0.rc3 test/unit/cli/command/options/base_object_test.rb
inch-0.4.0.rc2 test/unit/cli/command/options/base_object_test.rb
inch-0.4.0.rc1 test/unit/cli/command/options/base_object_test.rb
inch-0.3.4.rc1 test/unit/cli/command/options/base_object_test.rb