def fixture_file(path, dest=nil)
      raise "file path should be relative the the temporary directory." if path == File.expand_path(path)
      before do |example|
        fixture_path = find_fixture(example.file_path, path)
        dest_path = dest ? File.join(temp_path, dest) : temp_path
        FileUtils.mkdir_p(dest_path)
        file_list = MatchFixture::FileList.new(fixture_path)
        file_list.files.each do |file|
          abs = file_list.absolute(file)
          if File.directory?(abs)
            FileUtils.mkdir_p(File.join(dest_path, file))
          else
            FileUtils.copy(abs , File.join(dest_path, file), preserve: true)
          end
        end
      end
    end
def fixture_file(path, dest=nil)
      raise "file path should be relative the the temporary directory." if path == File.expand_path(path)
      before do |example|
        fixture_path = find_fixture(example.file_path, path)
        dest_path = dest ? File.join(temp_path, dest) : temp_path
        FileUtils.mkdir_p(dest_path)
        file_list = MatchFixture::FileList.new(fixture_path)
        file_list.files.each do |file|
          abs = file_list.absolute(file)
          if File.directory?(abs)
            FileUtils.mkdir_p(File.join(dest_path, file))
          else
            FileUtils.copy(abs , File.join(dest_path, file), preserve: true)
          end
        end
      end
    end
Copy fixture data from the spec folder to the temporary directory for this
 example.

 @param path [String] Path of the fixture to copy.
 @param dest [String] Optional destination path. By default the destination
   is the same as path.
 @example
   describe 'myapp' do
     command 'myapp run test/'
     fixture_file 'test'
     its(:exitstatus) { is_expected.to eq 0 }
   end