Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: v3.7.0.rc1
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (24 sloc) 1.128 kB
# 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}. You can change orm in environment variable CKEDITOR_ORM"
puts "\n==> Ckeditor.backend = #{CKEDITOR_BACKEND.inspect}. You can change backend in environment variable CKEDITOR_BACKEND"
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"
Jump to Line
Something went wrong with that request. Please try again.