def save_fixture(file_name, content = rendered)
      fixture_path = File.join(Rails.root, FIXTURE_DIRECTORY, file_name)
      fixture_directory = File.dirname(fixture_path)
      FileUtils.mkdir_p fixture_directory unless File.exists?(fixture_directory)

      File.open(fixture_path, 'w') do |file|
        file.puts(content)
      end

      ignore_generated_fixtures
    end
def save_fixture(file_name, content = rendered)
      fixture_path = File.join(Rails.root, FIXTURE_DIRECTORY, file_name)
      fixture_directory = File.dirname(fixture_path)
      FileUtils.mkdir_p fixture_directory unless File.exists?(fixture_directory)

      File.open(fixture_path, 'w') do |file|
        file.puts(content)
      end

      ignore_generated_fixtures
    end
Saves the rendered as a fixture file.