Sha256: 3ea024f3bde4f0b7a99b3376b7034b7c33a792306e35229a9584bc3acfb66548

Contents?: true

Size: 554 Bytes

Versions: 5

Compression:

Stored size: 554 Bytes

Contents

# see https://github.com/amatsuda/kaminari/blob/master/spec/fake_app.rb

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

# database
ActiveRecord::Base.configurations = {'test' => {:adapter => 'sqlite3', :database => ':memory:'}}
ActiveRecord::Base.establish_connection('test')

# config
app = Class.new(Rails::Application)
app.config.secret_token = "3b7cd727ee24e8444053437c36cc66c4"
app.config.session_store :cookie_store, :key => "_myapp_session"
app.config.active_support.deprecation = :log
app.initialize!

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
schema_comments-0.2.0.alpha5 spec/fake_app.rb
schema_comments-0.2.0.alpha4 spec/fake_app.rb
schema_comments-0.2.0.alpha3 spec/fake_app.rb
schema_comments-0.2.0.alpha2 spec/fake_app.rb
schema_comments-0.2.0.alpha1 spec/fake_app.rb