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: vtr_spec.rb
    path of file: ./repos/identity-idp/spec/features/saml
    
    the code of the file until where you have to start completion: require 'rails_helper'

RSpec.feature 'SAML requests using VTR', allowed_extra_analytics: [:*] do
  include SamlAuthHelper
  include IdvHelp
    
  def expect_successful_saml_redirect
    if javascript_enabled?
      expect(current_path).to eq(test_saml_decode_assertion_path)
    else
      expect(page).to have_current_path(
        api_saml_finalauthpost_path(path_year: SamlAuthHelper::PATH_YEAR),
      )
    end