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: add_to_rails_app_spec.rb
    path of file: ./repos/stitches/spec/integration
    
    the code of the file until where you have to start completion: require "spec_helper"
require "fileutils"
require "open3"

RSpec.describe "Adding Stitches to a New Rails App", :integration do
  let(:work_dir) { Dir.mktmpdir }
  let(:rails_app_name) { "swamp-thing" }
  let(:rails_ro
    
    def initialize(routes_file, namespace: nil, module_scope: nil, resource: nil, mounted_engine: nil)
      @routes_file = File.read(routes_file).split(/\n/)
      @found_namespace = false
      @found_module = false
      @found_resource = false
      @found_engine = false
      @engine_mounted = false

      @routes_file.each do |line|
        if line =~ /namespace :#{namespace} do/
          @found_namespace = true
        end
        if @found_namespace && line =~ /^\s*scope module: :#{module_scope}, constraints: Stitches::ApiVersionConstraint/
          @found_module = true
        end
        if @found_module && line =~ /^\s*resource\s+['"]#{resource}["']/
          @found_resource = true
        end