Sha256: 860fc96a8f62444c52d5b6928a16b4855121ac82084f2af02471262cca829d65

Contents?: true

Size: 605 Bytes

Versions: 34

Compression:

Stored size: 605 Bytes

Contents

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

describe ::Inch::CodeObject::Converter do
  class MockObject
    def docstring
      'Foo::Bar'
    end

    def parameters
      []
    end

    def public?
      false
    end

    def private?
      true
    end
  end

  let(:object) { MockObject.new }
  it 'should parse all objects' do
    attributes = ::Inch::CodeObject::Converter.to_hash(object)
    assert_equal object.docstring, attributes[:docstring]
    assert_equal object.public?, attributes[:public?]
    assert_equal object.private?, attributes[:private?]
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
inch-0.9.0.rc1 test/unit/code_object/converter_test.rb
inch-0.8.0 test/unit/code_object/converter_test.rb
inch-0.8.0.rc2 test/unit/code_object/converter_test.rb
inch-0.8.0.rc1 test/unit/code_object/converter_test.rb
inch-0.7.1 test/unit/code_object/converter_test.rb
inch-0.7.0 test/unit/code_object/converter_test.rb
inch-0.6.4 test/unit/code_object/converter_test.rb
inch-0.6.3 test/unit/code_object/converter_test.rb
inch-0.6.2 test/unit/code_object/converter_test.rb
inch-0.6.1 test/unit/code_object/converter_test.rb
inch-0.6.0 test/unit/code_object/converter_test.rb
inch-0.6.0.rc6 test/unit/code_object/converter_test.rb
inch-0.6.0.rc5 test/unit/code_object/converter_test.rb
inch-0.6.0.rc4 test/unit/code_object/converter_test.rb
inch-0.6.0.rc3 test/unit/code_object/converter_test.rb
inch-0.6.0.rc2 test/unit/code_object/converter_test.rb
inch-0.6.0.rc1 test/unit/code_object/converter_test.rb
inch-0.5.10 test/unit/code_object/converter_test.rb
inch-0.5.9 test/unit/code_object/converter_test.rb
inch-0.5.8 test/unit/code_object/converter_test.rb