# File lib/rubigen/helpers/generator_test_helper.rb, line 97 def assert_has_method(body,*methods) methods.each do |name| assert body=~/^ def #{name.to_s}\n((\n| .*\n)*) end/,"should have method #{name.to_s}" yield( name, $1 ) if block_given? end end