title: Ruby require - execute multiple times
body: <p>A general question about <strong>require</strong> in Ruby.<br/>
  My understanding of Ruby's require is that the file specified is only loaded once but can be executed multiple times. Is this correct?<br/>
  I have a set of Rspec tests in different files which all require the same file logger.rb. It doesn't seem like the methods I call in the required file are executed in every spec. <br/>
  Here is some of the code I wrote in logger.rb, it first cleans up the temp dir an then creates a logger.</p>
  
  <pre><code>tmpdir = Dir.tmpdir
  diagnostics_directory = File.join(tmpdir, LibertyBuildpack::Diagnostics::DIAGNOSTICS_DIRECTORY)
  FileUtils.rm_rf diagnostics_directory
  raise 'Failed to create logger' if LibertyBuildpack::Diagnostics::LoggerFactory.create_logger(tmpdir).nil?
  </code></pre>
  
  <p>I'd like this to happen in every spec.
  Is that because the tests are within the same module or did I misunderstand how require works.</p>