Sha256: 89434b38bdee4ea8c81aa1fcfec5c3a184d0457dc95ab50d188ef736f254063d
Contents?: true
Size: 869 Bytes
Versions: 1
Compression:
Stored size: 869 Bytes
Contents
$:.unshift File.expand_path('../../../lib', __FILE__) require 'action_controller/railtie' require 'active_record' require 'antivirus' module Dummy class Application < Rails::Application config.secret_token = 'abcdefghijklmnopqrstuvwxyz0123456789' config.session_store :cookie_store, key: '_dummy_session' config.eager_load = false config.active_support.deprecation = :log config.i18n.load_path += Dir[Rails.root.join('spec/dummy/config/locales/*.yml')] end end Dummy::Application.initialize! ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') class Post < ActiveRecord::Base validates :content, profanity_filter: true end class CreatePosts < ActiveRecord::Migration def change create_table :posts do |t| t.text :content t.timestamps null: true end end end CreatePosts.new.change
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
antivirus-0.0.2 | spec/dummy/application.rb |