diff options
author | Abe Flansburg <abeflansburg@gmail.com> | 2022-12-06 08:58:15 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-06 09:58:15 -0500 |
commit | 6fabbfd31af5952f363a8dc573bfa2059e41371d (patch) | |
tree | 43d5d1e4acda708d6607f51d35858d38714ab69d /spec/integration/rails_7/app.rb | |
parent | ccee824b27f5faa956472bc2c0903e875e5c95e5 (diff) | |
download | hashie-6fabbfd31af5952f363a8dc573bfa2059e41371d.tar.gz |
new integration spec for rails 7 exhibiting failure when executing de… (#569)
Diffstat (limited to 'spec/integration/rails_7/app.rb')
-rw-r--r-- | spec/integration/rails_7/app.rb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/spec/integration/rails_7/app.rb b/spec/integration/rails_7/app.rb new file mode 100644 index 0000000..1065688 --- /dev/null +++ b/spec/integration/rails_7/app.rb @@ -0,0 +1,40 @@ +require 'action_controller/railtie' +require 'action_view/railtie' +require 'action_view/testing/resolvers' +require 'rails/test_unit/railtie' + +module RailsApp + class Application < ::Rails::Application + config.eager_load = false + config.secret_key_base = 'hashieintegrationtest' + + routes.append do + get '/' => 'application#index' + end + end +end + +PAGE = <<-HTML.freeze +<!DOCTYPE html> +<html> +<head> + <title>TestApp</title> + <%= csrf_meta_tags %> +</head> +<body> + <h1>Hello, world!</h1> +</body> +</html> +HTML + +class ApplicationController < ActionController::Base + include Rails.application.routes.url_helpers + + def index + render inline: PAGE + end +end + +Bundler.require(:default, Rails.env) + +RailsApp::Application.initialize! |