You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: test_text.rb
    path of file: ./repos/thinreports-generator/test/basic_report/units/generator/pdf/document/graphics
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'test_helper'

class Thinreports::
    
  def test_with_text_styles_should_set_leading_via_line_height_attribute
    exec_with_text_styles(line_height: 30) do |attrs, _styles|
      expected = @pdf.send(:text_line_leading,
                           @pdf.send(:s2f, 30),
                           name: 'Helvetica', size: 18)
      assert_equal attrs[:leading], expected
    end
  end