Sha256: 0407653cbaabf9ea5051b8550becd5912a5292ab32907737d9d7fb53525236b0

Contents?: true

Size: 984 Bytes

Versions: 1

Compression:

Stored size: 984 Bytes

Contents

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

puts "\n==> Ckeditor.orm = #{CKEDITOR_ORM.inspect}. You can change orm in environment variable CKEDITOR_ORM"

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"
require "generators/ckeditor/models_generator"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ckeditor-3.6.0 test/test_helper.rb