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: resource_generator_test.rb
    path of file: ./repos/godmin/test/generators
    
    the code of the file until where you have to start completion: require "test_helper"
require "generators/godmin/resource/resource_generator"

module Godmin
  class ResourceGeneratorTest < ::Rails::Generators::TestCase
    tests ResourceGenerator
    destination File.expand_path("../../tmp", __FILE__)
    setup :prepare_destination
    teardown :prepare_destination

    setup do
      @__env_ci = ENV["CI"]
      ENV.delete("CI")
    end

    teardown do
      ENV["CI"] = @__env_ci if @__env_ci
    end

    def system!(cmd)
      system(cmd) or fail("Failed to execute: #{cmd}")
    end

    def test_resource_generator_in_standalone_install
      system! "cd #{destination_root} && rails new . --skip-test --skip-spring --skip-bundle --skip-git --quiet"
      system! "cd #{destination_root} && bin/rails ge
    
    def test_resource_generator_in_engine_install
      system! "cd #{destination_root} && rails new . --skip-test --skip-spring --skip-bundle --skip-git --quiet"
      system! "cd #{destination_root} && bin/rails plugin new fakemin --mountable --quiet"
      system! "cd #{destination_root} && fakemin/bin/rails generate godmin:install --quiet"
      system! "cd #{destination_root} && fakemin/bin/rails generate godmin:resource foo bar --quiet"

      assert_file "fakemin/config/routes.rb", /resources :foos/
      assert_file "fakemin/app/views/fakemin/shared/_navigation.html.erb", /<%= navbar_item Foo %>/

      assert_file "fakemin/app/controllers/fakemin/foos_controller.rb" do |content|
        expected_content = <<-CONTENT.strip_heredoc
          module Fakemin
            class FoosController < ApplicationController
              include Godmin::Resources::ResourceController
            end
          end