Sha256: c7e51ffeea9e2e50a60095ac3a1e5a170102fcd33d941a712b652f83997b1db7

Contents?: true

Size: 886 Bytes

Versions: 4

Compression:

Stored size: 886 Bytes

Contents

require 'action_controller/railtie'
require 'action_view/railtie'

require 'capybara/rspec'

require_relative 'models/config'

app = Class.new(Rails::Application)
app.config.secret_token = '7295e7f2718c940f459e5062f575cd92'
app.config.session_store :cookie_store, :key => '_myapp_session'
app.config.active_support.deprecation = :log
app.config.eager_load = false

# Rais.root
app.config.root = File.dirname(__FILE__)
Rails.backtrace_cleaner.remove_silencers!
app.initialize!

# ROUTES
app.routes.draw do
  resources :users
end

# MODELS
require_relative 'models/active_record'

# CONTROLLERS
class ApplicationController < ActionController::Base; end
class UsersController < ApplicationController
  def index
    @users_grid = init_grid(User)
    render 'spec/fake_app/views/index', layout: false
  end
end

# HELPERS
Object.const_set(:ApplicationHelper, Module.new)

Capybara.app = app

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mighty_grid-0.6.0 spec/fake_app/rails_app.rb
mighty_grid-0.5.0 spec/fake_app/rails_app.rb
mighty_grid-0.4.0 spec/fake_app/rails_app.rb
mighty_grid-0.3.3 spec/fake_app/rails_app.rb