Sha256: 645dde37dbf48ab89e28ca8fffc1b387b7d57229c6fe027d1056adc3fce89043
Contents?: true
Size: 1.34 KB
Versions: 2
Compression:
Stored size: 1.34 KB
Contents
require File.expand_path(File.dirname(__FILE__) + "/../../test_helper") describe ::Inch::CodeObject::Proxy do before do @codebase = test_codebase(:code_examples) @objects = @codebase.objects end def test_inspect_gives_original_name m = @objects.find("Foo::Bar#method_with_code_example") assert_match /Foo::Bar#method_with_code_example/, m.inspect end def test_grade_is_not_nil m = @objects.find("Foo::Bar#method_with_code_example") assert m.grade end def test_method_with_code_example m = @objects.find("Foo::Bar#method_with_code_example") assert m.has_code_example? end def test_method_with_code_example2 m = @objects.find("Foo::Bar#method_with_code_example2") assert m.has_code_example? end def test_method_with_code_examples m = @objects.find("Foo::Bar#method_with_one_example") assert m.has_code_example? refute m.has_multiple_code_examples? end def test_method_with_code_examples m = @objects.find("Foo::Bar#method_with_examples") assert m.has_multiple_code_examples? end def test_method_with_code_examples m = @objects.find("Foo::Bar#method_with_tagged_example") assert m.has_multiple_code_examples? end def test_method_with_code_examples m = @objects.find("Foo::Bar#method_with_2tagged_examples") assert m.has_multiple_code_examples? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
inch-0.5.0.rc5 | test/unit/code_object/proxy_test.rb |
inch-0.5.0.rc4 | test/unit/code_object/proxy_test.rb |