Sha256: e173c49c856631fbf2a69cd9722636293e2e5a5790338cd158568507cf41d95f
Contents?: true
Size: 1.51 KB
Versions: 2
Compression:
Stored size: 1.51 KB
Contents
# http://www.rubytutorial.io/how-to-test-your-gem-against-multiple-rails/ require "action_controller/railtie" require "action_mailer/railtie" require "active_resource/railtie" require "rails/test_unit/railtie" require "sprockets/railtie" require 'action_view/testing/resolvers' require 'rails/test_help' require 'egregious' # our gem class Rails3_2 < Rails::Application config.root = File.expand_path("../../..", __FILE__) config.cache_classes = true config.eager_load = false config.serve_static_assets = true config.static_cache_control = "public, max-age=3600" config.consider_all_requests_local = true config.action_controller.perform_caching = false config.action_dispatch.show_exceptions = false config.action_controller.allow_forgery_protection = false config.active_support.deprecation = :stderr config.middleware.delete "Rack::Lock" config.middleware.delete "ActionDispatch::Flash" config.middleware.delete "ActionDispatch::BestStandardsSupport" config.secret_token = "49837489qkuweoiuoqwehisuakshdjksadhaisdy78o34y138974xyqp9rmye8yrpiokeuioqwzyoiuxftoyqiuxrhm3iou1hrzmjk" routes.append do get "/" => "welcome#index" get "/" => "fake#test" end end class WelcomeController < ActionController::Base include Rails.application.routes.url_helpers layout 'application' self.view_paths = [ActionView::FixtureResolver.new( "layouts/application.html.erb" => '<%= yield %>', "welcome/index.html.erb"=> 'Hello from index.html.erb', )] def index end end Rails3_2.initialize!
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
egregious-0.2.13 | spec/apps/rails3_2.rb |
egregious-0.2.12 | spec/apps/rails3_2.rb |