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.9.0.rc1 test/unit/cli/command/options/base_object_test.rb
inch-0.8.0 test/unit/cli/command/options/base_object_test.rb
inch-0.8.0.rc2 test/unit/cli/command/options/base_object_test.rb
inch-0.8.0.rc1 test/unit/cli/command/options/base_object_test.rb
inch-0.7.1 test/unit/cli/command/options/base_object_test.rb
inch-0.7.0 test/unit/cli/command/options/base_object_test.rb
inch-0.6.4 test/unit/cli/command/options/base_object_test.rb
inch-0.6.3 test/unit/cli/command/options/base_object_test.rb
inch-0.6.2 test/unit/cli/command/options/base_object_test.rb
inch-0.6.1 test/unit/cli/command/options/base_object_test.rb
inch-0.6.0 test/unit/cli/command/options/base_object_test.rb
inch-0.6.0.rc6 test/unit/cli/command/options/base_object_test.rb
inch-0.6.0.rc5 test/unit/cli/command/options/base_object_test.rb
inch-0.6.0.rc4 test/unit/cli/command/options/base_object_test.rb
inch-0.6.0.rc3 test/unit/cli/command/options/base_object_test.rb
inch-0.6.0.rc2 test/unit/cli/command/options/base_object_test.rb
inch-0.6.0.rc1 test/unit/cli/command/options/base_object_test.rb
inch-0.5.10 test/unit/cli/command/options/base_object_test.rb
inch-0.5.9 test/unit/cli/command/options/base_object_test.rb
inch-0.5.8 test/unit/cli/command/options/base_object_test.rb