Sha256: c864f4294f61241095b79d771788f92b7b9d7bbc43a75914825d9e7941631142

Contents?: true

Size: 498 Bytes

Versions: 34

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

34 entries across 34 versions & 1 rubygems

Version Path
inch-0.5.7 test/unit/cli/command/options/base_object_test.rb
inch-0.5.6 test/unit/cli/command/options/base_object_test.rb
inch-0.5.5 test/unit/cli/command/options/base_object_test.rb
inch-0.5.4 test/unit/cli/command/options/base_object_test.rb
inch-0.5.3 test/unit/cli/command/options/base_object_test.rb
inch-0.5.2 test/unit/cli/command/options/base_object_test.rb
inch-0.5.1 test/unit/cli/command/options/base_object_test.rb
inch-0.5.0 test/unit/cli/command/options/base_object_test.rb
inch-0.5.0.rc11 test/unit/cli/command/options/base_object_test.rb
inch-0.5.0.rc10 test/unit/cli/command/options/base_object_test.rb
inch-0.5.0.rc9 test/unit/cli/command/options/base_object_test.rb
inch-0.5.0.rc8 test/unit/cli/command/options/base_object_test.rb
inch-0.5.0.rc7 test/unit/cli/command/options/base_object_test.rb
inch-0.5.0.rc6 test/unit/cli/command/options/base_object_test.rb