Sha256: 4396de998f7318d9d78306d996737b6e822d5f07ad17341bc60104b200cc7f1f

Contents?: true

Size: 1.28 KB

Versions: 62

Compression:

Stored size: 1.28 KB

Contents

# Configure Rails Envinronment
ENV["RAILS_ENV"] = "test"
CKEDITOR_ORM = (ENV["CKEDITOR_ORM"] || :active_record).to_sym
CKEDITOR_BACKEND = (ENV["CKEDITOR_BACKEND"] || :paperclip).to_sym

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'

ActionMailer::Base.delivery_method = :test
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.default_url_options[:host] = "test.com"

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
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

62 entries across 62 versions & 4 rubygems

Version Path
ckeditor-4.1.3 test/test_helper.rb
glebtv-ckeditor-4.4.7.4 test/test_helper.rb
ckeditor-4.1.2 test/test_helper.rb
glebtv-ckeditor-4.4.7.3 test/test_helper.rb
glebtv-ckeditor-4.4.7.2 test/test_helper.rb
glebtv-ckeditor-4.4.7.1 test/test_helper.rb
glebtv-ckeditor-4.4.7 test/test_helper.rb
glebtv-ckeditor-4.4.6 test/test_helper.rb
ckeditor-4.1.1 test/test_helper.rb
glebtv-ckeditor-4.4.3.4 test/test_helper.rb
glebtv-ckeditor-4.4.3.3 test/test_helper.rb
glebtv-ckeditor-4.4.3.2 test/test_helper.rb
glebtv-ckeditor-4.4.3.1 test/test_helper.rb
glebtv-ckeditor-4.4.3.0 test/test_helper.rb
glebtv-ckeditor-4.3.2.6 test/test_helper.rb
ckeditor-4.1.0 test/test_helper.rb
glebtv-ckeditor-4.3.2.5 test/test_helper.rb
ckeditor-4.0.11 test/test_helper.rb
glebtv-ckeditor-4.3.2.4 test/test_helper.rb
glebtv-ckeditor-4.3.2.3 test/test_helper.rb