lib/rubigen/helpers/generator_test_helper.rb
# asserts that the given file was generated.
# the contents of the file is passed to a block.
asserts that the given file was generated.
the contents of the file is passed to a block.
asserts that the given file was generated . the contents of the file is passed to a block .
def assert_generated_file(path)
      assert_file_exists(path)
      File.open("#{APP_ROOT}/#{path}") do |f|
        yield f.read if block_given?
      end
    end
def assert_generated_file ( path ) assert_file_exists ( path ) File . open ( "#{APP_ROOT}/#{path}" ) do | f | yield f . read if block_given? end end
asserts that the given file was generated.
asserts that the given file was generated .
path
<not_specific>