Sha256: ebeca40750588c849f7a09b655188c2001cf6b84d213b662a7bda3d976e95ef6
Contents?: true
Size: 749 Bytes
Versions: 1
Compression:
Stored size: 749 Bytes
Contents
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!
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hashie-4.0.0 | spec/integration/rails/app.rb |