Sha256: 84c818f8ad19176b4dd048fcc4144cf358c0ba51539e8add8d5f9b5b9dfee292
Contents?: true
Size: 1.25 KB
Versions: 1
Compression:
Stored size: 1.25 KB
Contents
# frozen_string_literal: true # Configure Rails Envinronment ENV['RAILS_ENV'] = 'test' CKEDITOR_ORM = (ENV['CKEDITOR_ORM'] || :active_record).to_sym CKEDITOR_BACKEND = (ENV['CKEDITOR_BACKEND'] || :paperclip).to_sym $:.unshift File.dirname(__FILE__) puts "\n==> Ckeditor.orm = #{CKEDITOR_ORM.inspect}. CKEDITOR_ORM = (active_record|mongoid)" puts "\n==> Ckeditor.backend = #{CKEDITOR_BACKEND.inspect}. CKEDITOR_BACKEND = (paperclip|carrierwave|dragonfly)" require File.expand_path('../dummy/config/environment.rb', __FILE__) require 'rails/test_help' require 'redgreen' Rails.backtrace_cleaner.remove_silencers! # Configure capybara for integration testing require 'capybara/rails' Capybara.default_driver = :rack_test Capybara.default_selector = :css # Run specific orm operations require "orm/#{CKEDITOR_ORM}" # Load support files $:.unshift File.expand_path('../support', __FILE__) Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } # For generators require 'rails/generators/test_case' require 'generators/ckeditor/install_generator' # Run template migration for the selected backend if CKEDITOR_ORM == :active_record require "generators/ckeditor/templates/active_record/#{CKEDITOR_BACKEND}/migration.rb" CreateCkeditorAssets.new.up end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ckeditor-5.0.0 | test/test_helper.rb |