Sha256: 26a9c32274a56c25ad82002499b603da4c1f8883b5b9922e6b6ac344fe7ce3b5
Contents?: true
Size: 605 Bytes
Versions: 36
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
36 entries across 36 versions & 1 rubygems