Skip to content

Commit

Permalink
Test for adding the same include twice
Browse files Browse the repository at this point in the history
  • Loading branch information
drbrain committed Apr 13, 2011
1 parent 4b5f5b0 commit 72c6b2c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/test_rdoc_context.rb
Expand Up @@ -143,6 +143,16 @@ def test_add_include
assert_equal [incl], @context.includes
end

def test_add_include_twice
incl1 = RDoc::Include.new 'Name', 'comment'
@context.add_include incl1

incl2 = RDoc::Include.new 'Name', 'comment'
@context.add_include incl2

assert_equal [incl1], @context.includes
end

def test_add_method
meth = RDoc::AnyMethod.new nil, 'old_name'
meth.visibility = nil
Expand Down

0 comments on commit 72c6b2c

Please sign in to comment.