Sha256: c56b8e6a4dada994ad980e3b2d0d2083976a6aaf458f6d9b8e9b6df93faad23b

Contents?: true

Size: 796 Bytes

Versions: 10

Compression:

Stored size: 796 Bytes

Contents

ENV['RAILS_ENV'] ||= 'test'

require 'action_controller/railtie'
require 'simple_navigation'

module RailsApp
  class Application < Rails::Application
    config.active_support.deprecation = :log
    config.cache_classes = true
    config.eager_load = false
    config.root = __dir__
    config.secret_token = 'x'*100
    config.session_store :cookie_store, key: '_myapp_session'
  end

  class TestsController < ActionController::Base
    def base
      render inline: <<-END
        <!DOCTYPE html>
        <html>
          <body>
            <%= render_navigation %>
          </body>
        </html>
      END
    end
  end
end

Rails.backtrace_cleaner.remove_silencers!
RailsApp::Application.initialize!

RailsApp::Application.routes.draw do
  get '/base_spec' => 'rails_app/tests#base'
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
simple-navigation-4.4.0 spec/fake_app/rails_app.rb
simple-navigation-4.3.0 spec/fake_app/rails_app.rb
simple-navigation-4.2.0 spec/fake_app/rails_app.rb
simple-navigation-4.1.0 spec/fake_app/rails_app.rb
simple-navigation-4.0.5 spec/fake_app/rails_app.rb
simple-navigation-4.0.4 spec/fake_app/rails_app.rb
simple-navigation-4.0.3 spec/fake_app/rails_app.rb
simple-navigation-4.0.2 spec/fake_app/rails_app.rb
simple-navigation-4.0.1 spec/fake_app/rails_app.rb
simple-navigation-4.0.0 spec/fake_app/rails_app.rb