def fixture
      pwd  = FileUtils.pwd
      path = File.expand_path(File.join(pwd, "spec/.fixtures/#{rand(99999)}"))

      FileUtils.mkdir_p(path)
      FileUtils.cd(path)

      yield(path)

    ensure
      FileUtils.cd pwd
      FileUtils.rm_rf(path) if File.exists?(path)
    end
def fixture
      pwd  = FileUtils.pwd
      path = File.expand_path(File.join(pwd, "spec/.fixtures/#{rand(99999)}"))

      FileUtils.mkdir_p(path)
      FileUtils.cd(path)

      yield(path)

    ensure
      FileUtils.cd pwd
      FileUtils.rm_rf(path) if File.exists?(path)
    end
Prepares the temporary fixture directory and
 cleans it afterwards.

 @yield [path] an empty fixture directory
 @yieldparam [String] path the path to the fixture directory