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: last_step_with_validation_test.rb
    path of file: ./repos/u-case/test/micro/case/with_activemodel_validation/classes_with_flows
    
    the code of the file until where you have to start completion: require 'test_helper'

if ENV.fetch('ACTIVERECORD_VERSION', '7') <= '6.1.0'

  module Micro::Case::WithActivemodelValidation::Safe
    module ClassesWithFlows
      class LastStepWithValidationTest < Minitest::Test
        class ConvertTextToNumber < Micro::Case::Safe
         
    
        def test_the_use_case_result
          result = Double.call(text: '4')

          assert_success_result(result, value: { text: '8' })

          assert_equal(
            [ConvertTextToNumber, Double::Self, ConvertNumberToText],
            Double.use_cases
          )

          # ---

          result = Double.call(text: '4.0')

          assert_failure_result(result, type: :invalid_attributes)

          assert_equal('must be a kind of Integer', result.value[:errors][:number].join)
        end